2022-04-26 13:30:11 +00:00
|
|
|
# Generated by Django 3.1.14 on 2022-04-26 07:54
|
|
|
|
|
|
|
|
from django.db import migrations, models
|
|
|
|
import django.db.models.deletion
|
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
|
|
|
|
dependencies = [
|
2022-08-24 08:14:32 +00:00
|
|
|
('assets', '0095_auto_20220407_1726'),
|
2022-04-26 13:30:11 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.CreateModel(
|
2022-09-23 02:15:07 +00:00
|
|
|
name='PlatformProtocol',
|
2022-04-26 13:30:11 +00:00
|
|
|
fields=[
|
2022-09-23 02:15:07 +00:00
|
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
|
|
('name', models.CharField(max_length=32, verbose_name='Name')),
|
|
|
|
('port', models.IntegerField(verbose_name='Port')),
|
|
|
|
('setting', models.JSONField(default=dict, verbose_name='Setting')),
|
|
|
|
('platform', models.ForeignKey(on_delete=models.deletion.CASCADE, related_name='protocols', to='assets.platform'),),
|
2022-10-19 03:39:11 +00:00
|
|
|
('default', models.BooleanField(default=True, verbose_name='Default')),
|
|
|
|
('required', models.BooleanField(default=False, verbose_name='Required')),
|
2022-04-26 13:30:11 +00:00
|
|
|
],
|
|
|
|
),
|
|
|
|
migrations.CreateModel(
|
2022-09-23 02:15:07 +00:00
|
|
|
name='PlatformAutomation',
|
2022-04-26 13:30:11 +00:00
|
|
|
fields=[
|
2022-09-23 02:15:07 +00:00
|
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
2022-09-26 10:03:48 +00:00
|
|
|
('ansible_enabled', models.BooleanField(default=False, verbose_name='Enabled')),
|
|
|
|
('ansible_config', models.JSONField(default=dict, verbose_name='Ansible config')),
|
2022-09-23 02:15:07 +00:00
|
|
|
('ping_enabled', models.BooleanField(default=False, verbose_name='Ping enabled')),
|
|
|
|
('ping_method', models.CharField(blank=True, max_length=32, null=True, verbose_name='Ping method')),
|
|
|
|
('gather_facts_enabled', models.BooleanField(default=False, verbose_name='Gather facts enabled')),
|
|
|
|
('gather_facts_method', models.TextField(blank=True, max_length=32, null=True, verbose_name='Gather facts method')),
|
2022-10-19 03:39:11 +00:00
|
|
|
('push_account_enabled', models.BooleanField(default=False, verbose_name='Create account enabled')),
|
|
|
|
('push_account_method', models.TextField(blank=True, max_length=32, null=True, verbose_name='Create account method')),
|
2022-10-13 09:47:29 +00:00
|
|
|
('change_secret_enabled', models.BooleanField(default=False, verbose_name='Change password enabled')),
|
|
|
|
('change_secret_method', models.TextField(blank=True, max_length=32, null=True, verbose_name='Change password method')),
|
2022-09-23 02:15:07 +00:00
|
|
|
('verify_account_enabled', models.BooleanField(default=False, verbose_name='Verify account enabled')),
|
|
|
|
('verify_account_method', models.TextField(blank=True, max_length=32, null=True, verbose_name='Verify account method')),
|
|
|
|
('gather_accounts_enabled', models.BooleanField(default=False, verbose_name='Gather facts enabled')),
|
|
|
|
('gather_accounts_method', models.TextField(blank=True, max_length=32, null=True, verbose_name='Gather facts method')),
|
2022-04-26 13:30:11 +00:00
|
|
|
],
|
|
|
|
),
|
2022-09-23 02:15:07 +00:00
|
|
|
migrations.AddField(
|
|
|
|
model_name='platform',
|
|
|
|
name='automation',
|
|
|
|
field=models.OneToOneField(blank=True, null=True, on_delete=models.deletion.CASCADE, related_name='platform', to='assets.platformautomation', verbose_name='Automation'),
|
2022-04-28 04:47:39 +00:00
|
|
|
),
|
2022-04-26 13:30:11 +00:00
|
|
|
]
|