# Generated by Django 3.2.3 on 2022-10-10 14:42

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('vm', '0013_auto_20221006_1509'),
    ]

    operations = [
        migrations.CreateModel(
            name='Variable',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('key', models.CharField(max_length=100, unique=True, verbose_name='variable name')),
                ('value', models.CharField(max_length=150, verbose_name='variable value')),
            ],
        ),
        migrations.AlterField(
            model_name='instance',
            name='ci_network_config',
            field=models.TextField(blank=True, default='network:\n  version: 2\n  ethernets:\n    ens3:\n      match:\n        macaddress: {{ net.mac }}\n      addresses: \n        - {{ net.ipv4 }}/24\n      gateway4: ipv4\n      nameservers:\n        addresses:\n          - 8.8.8.8', help_text='When cloud-init is active, set network-config(YAML format)', verbose_name='CI Network Data'),
        ),
        migrations.AlterField(
            model_name='instance',
            name='ci_user_data',
            field=models.TextField(blank=True, default="#cloud-config\n\nssh_pwauth: 1\n\nusers:\n  - name: {{ sysuser }} \n    sudo: ['ALL=(ALL) NOPASSWD:ALL']\n    groups: sudo\n    shell: /bin/bash\n    chpasswd: { expire: False }\n    lock-passwd: false\nchpasswd:\n    list: |\n        {{ sysuser }}:{{ password }}\n    expire: False", help_text='When cloud-init is active, set user-data (YAML format)', verbose_name='CI User Data'),
        ),
        migrations.AlterField(
            model_name='instancetemplate',
            name='ci_network_config',
            field=models.TextField(blank=True, default='network:\n  version: 2\n  ethernets:\n    ens3:\n      match:\n        macaddress: {{ net.mac }}\n      addresses: \n        - {{ net.ipv4 }}/24\n      gateway4: ipv4\n      nameservers:\n        addresses:\n          - 8.8.8.8', help_text='When cloud-init is active, set network-config(YAML format)', verbose_name='CI Network Data'),
        ),
        migrations.AlterField(
            model_name='instancetemplate',
            name='ci_user_data',
            field=models.TextField(blank=True, default="#cloud-config\n\nssh_pwauth: 1\n\nusers:\n  - name: {{ sysuser }} \n    sudo: ['ALL=(ALL) NOPASSWD:ALL']\n    groups: sudo\n    shell: /bin/bash\n    chpasswd: { expire: False }\n    lock-passwd: false\nchpasswd:\n    list: |\n        {{ sysuser }}:{{ password }}\n    expire: False", help_text='When cloud-init is active, set user-data (YAML format)', verbose_name='CI User Data'),
        ),
    ]
