testing
This commit is contained in:
parent
324fe0b191
commit
f1975b4dc1
17
.github/workflows/vagrant.yml
vendored
17
.github/workflows/vagrant.yml
vendored
@ -8,7 +8,7 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
homelab-ci:
|
homelab-ci:
|
||||||
runs-on: macos-latest
|
runs-on: macos-13
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
@ -21,19 +21,22 @@ jobs:
|
|||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-vagrant-
|
${{ runner.os }}-vagrant-
|
||||||
|
|
||||||
|
- name: Install VirtualBox
|
||||||
|
run: brew install --cask virtualbox
|
||||||
|
|
||||||
|
- name: Install Vagrant
|
||||||
|
run: brew install --cask vagrant
|
||||||
|
|
||||||
- name: Install Ansible
|
- name: Install Ansible
|
||||||
run: brew install ansible@7
|
run: brew install ansible
|
||||||
|
|
||||||
- name: Software Versions
|
- name: Software Versions
|
||||||
run: |
|
run: |
|
||||||
printf "VirtualBox "
|
printf "VirtualBox "; vboxmanage --version
|
||||||
vboxmanage --version
|
|
||||||
vagrant --version
|
vagrant --version
|
||||||
export PATH="/usr/local/opt/ansible@7/bin:$PATH"
|
|
||||||
ansible --version
|
ansible --version
|
||||||
|
|
||||||
- name: Vagrant Up with Dockerbox Playbook
|
- name: Vagrant Up with Dockerbox Playbook
|
||||||
run: |
|
run: |
|
||||||
export PATH="/usr/local/opt/ansible@7/bin:$PATH"
|
PLAYBOOK=dockerbox vagrant up --debug
|
||||||
PLAYBOOK=dockerbox vagrant up
|
|
||||||
vagrant ssh -c "docker ps"
|
vagrant ssh -c "docker ps"
|
||||||
|
3
Vagrantfile
vendored
3
Vagrantfile
vendored
@ -36,6 +36,7 @@ Vagrant.configure("2") do |config|
|
|||||||
config.vm.provider :virtualbox do |vbox|
|
config.vm.provider :virtualbox do |vbox|
|
||||||
vbox.cpus = VAGRANT_CPUS
|
vbox.cpus = VAGRANT_CPUS
|
||||||
vbox.memory = VAGRANT_MEM
|
vbox.memory = VAGRANT_MEM
|
||||||
|
vbox.gui = true
|
||||||
end
|
end
|
||||||
|
|
||||||
# Provision with Ansible
|
# Provision with Ansible
|
||||||
@ -43,6 +44,6 @@ Vagrant.configure("2") do |config|
|
|||||||
ENV['ANSIBLE_ROLES_PATH'] = File.dirname(__FILE__) + "/roles"
|
ENV['ANSIBLE_ROLES_PATH'] = File.dirname(__FILE__) + "/roles"
|
||||||
ansible.compatibility_mode = "2.0"
|
ansible.compatibility_mode = "2.0"
|
||||||
ansible.playbook = "dev/" + PLAYBOOK + ".yml"
|
ansible.playbook = "dev/" + PLAYBOOK + ".yml"
|
||||||
ansible.raw_arguments = ["--diff"]
|
ansible.raw_arguments = ["--diff", "-vvv"]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user