jumpserver/apps/assets/migrations/0096_auto_20220426_1550.py

55 lines
3.0 KiB
Python
Raw Normal View History

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
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')),
2022-12-27 07:27:33 +00:00
('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')),
('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')),
2022-12-27 07:27:33 +00:00
('gather_facts_method',
models.TextField(blank=True, max_length=32, null=True, verbose_name='Gather facts method')),
2022-10-13 09:47:29 +00:00
('change_secret_enabled', models.BooleanField(default=False, verbose_name='Change password enabled')),
2022-12-27 07:27:33 +00:00
('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')),
2022-12-27 07:27:33 +00:00
('verify_account_method',
models.TextField(blank=True, max_length=32, null=True, verbose_name='Verify account method')),
2022-09-23 02:15:07 +00:00
('gather_accounts_enabled', models.BooleanField(default=False, verbose_name='Gather facts enabled')),
2022-12-27 07:27:33 +00:00
('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',
2022-12-27 07:27:33 +00:00
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
]