This commit is contained in:
Maxim Slipenko 2023-11-20 07:52:38 +03:00
parent 95ff715b79
commit 1b3b9ab34e
4 changed files with 2 additions and 29 deletions

View File

@ -0,0 +1 @@
https://app.vagrantup.com/maks1ms/boxes/alt-server-v-10

View File

@ -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

View File

@ -17,6 +17,3 @@ boot_command = [
"ai curl=http://{{ .HTTPIP }}:{{ .HTTPPort }}/",
"<f10>"
]
setup_playbook = "./alt-server-v-10/setup.yml"
setup_script = "./alt-server-v-10/setup.sh"

View File

@ -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"