From a908da441bf6efcdb289a46d0c2761840138b1a5 Mon Sep 17 00:00:00 2001 From: Sawyer Bergeron Date: Tue, 8 Jun 2021 11:15:56 -0400 Subject: Draft for cloud-init file generation Signed-off-by: Sawyer Bergeron Signed-off-by: Sawyer Bergeron Change-Id: I07f3a4a1ab67531cba2cc7e3de22e9bb860706e1 Signed-off-by: Sawyer Bergeron --- src/api/migrations/0017_cloudinitfile.py | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/api/migrations/0017_cloudinitfile.py (limited to 'src/api/migrations/0017_cloudinitfile.py') diff --git a/src/api/migrations/0017_cloudinitfile.py b/src/api/migrations/0017_cloudinitfile.py new file mode 100644 index 0000000..f14aea1 --- /dev/null +++ b/src/api/migrations/0017_cloudinitfile.py @@ -0,0 +1,25 @@ +# Generated by Django 2.2 on 2021-06-11 20:42 + +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + dependencies = [ + ('resource_inventory', '0017_auto_20201218_1516'), + ('booking', '0008_auto_20201109_1947'), + ('api', '0016_auto_20201109_2149'), + ] + + operations = [ + migrations.CreateModel( + name='CloudInitFile', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('resource_id', models.CharField(max_length=200)), + ('booking', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='booking.Booking')), + ('rconfig', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='resource_inventory.ResourceConfiguration')), + ], + ), + ] -- cgit 1.2.3-korg