From 1b3b9ab34ec63770abd8cbb6fd6808c8d5bbdf5f Mon Sep 17 00:00:00 2001 From: Maxim Slipenko Date: Mon, 20 Nov 2023 07:52:38 +0300 Subject: [PATCH] wip --- alt-server-v-10/README.md | 1 + alt-server-v-10/setup.yml | 17 ----------------- alt-server-v-10/vars.pkrvars.hcl | 5 +---- libvirt.pkr.hcl | 8 -------- 4 files changed, 2 insertions(+), 29 deletions(-) create mode 100644 alt-server-v-10/README.md delete mode 100644 alt-server-v-10/setup.yml diff --git a/alt-server-v-10/README.md b/alt-server-v-10/README.md new file mode 100644 index 0000000..12953af --- /dev/null +++ b/alt-server-v-10/README.md @@ -0,0 +1 @@ +https://app.vagrantup.com/maks1ms/boxes/alt-server-v-10 \ No newline at end of file diff --git a/alt-server-v-10/setup.yml b/alt-server-v-10/setup.yml deleted file mode 100644 index 251c0be..0000000 --- a/alt-server-v-10/setup.yml +++ /dev/null @@ -1,17 +0,0 @@ ---- -- name: Provision - hosts: default - become: true - become_method: su - gather_facts: false - vars: - become_password: vagrant - tasks: - - name: Shell - ansible.builtin.shell: | - mkdir -pm 700 /home/vagrant/.ssh - curl -q -o /home/vagrant/.ssh/authorized_keys https://raw.githubusercontent.com/mitchellh/vagrant/master/keys/vagrant.pub - chmod 0600 /home/vagrant/.ssh/authorized_keys - chown -R vagrant:vagrant /home/vagrant/.ssh - echo "vagrant ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/vagrant - chmod 0440 /etc/sudoers.d/vagrant diff --git a/alt-server-v-10/vars.pkrvars.hcl b/alt-server-v-10/vars.pkrvars.hcl index 5ba27ce..4b1375b 100644 --- a/alt-server-v-10/vars.pkrvars.hcl +++ b/alt-server-v-10/vars.pkrvars.hcl @@ -16,7 +16,4 @@ boot_command = [ "e", "ai curl=http://{{ .HTTPIP }}:{{ .HTTPPort }}/", "" -] - -setup_playbook = "./alt-server-v-10/setup.yml" -setup_script = "./alt-server-v-10/setup.sh" \ No newline at end of file +] \ No newline at end of file diff --git a/libvirt.pkr.hcl b/libvirt.pkr.hcl index 56771f3..b6f912b 100644 --- a/libvirt.pkr.hcl +++ b/libvirt.pkr.hcl @@ -73,14 +73,6 @@ build { "source.qemu.alt-linux" ] - # provisioner "ansible" { - # playbook_file = "${var.setup_playbook}" - # } - #provisioner "shell" { - #script = "${var.setup_script}" - #execute_command = "python -c 'import pty; pty.spawn(\"/bin/bash\")'; echo 'vagrant' | su -c sh -c '{{ .Vars }} {{ .Path }}'" - #} - post-processor "vagrant" { keep_input_artifact = false output = "package.box"