-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathkitchen.vagrant.yml
53 lines (49 loc) · 1.42 KB
/
kitchen.vagrant.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
---
platforms:
- name: rhel-8
driver:
name: vagrant
driver_config:
ssl_verify_mode: ":verify_none"
customize:
cpus: 4
memory: 8192
accelerate3d: "off"
accelerate2dvideo: "off"
audio: "none"
usbcardreader: "off"
vrde: "off"
usb: "off"
nictype1: "82540EM"
clipboard: "disabled"
#nestedpaging: "off
provisioner:
name: ansible_playbook
hosts: all
# require_ansible_repo: false
# require_ansible_omnibus: false
require_chef_for_busser: false
require_ruby_for_busser: false
ansible_binary_path: /usr/local/bin
require_pip3: true
ansible_verbose: true
roles_path: spec/ansible/roles
galaxy_ignore_certs: true
requirements_path: spec/ansible/roles/requirements.yml
ansible_extra_flags: <%= ENV['ANSIBLE_EXTRA_FLAGS'] %>
platforms:
- name: almalinux-8
driver:
box: bento/almalinux-8
box_download_insecure: true
lifecycle:
pre_converge:
- remote: |
echo "NOTICE - Installing needed packages"
sudo yum install -y bc bind-utils redhat-lsb-core vim
echo "NOTICE - Updating the vagrant user to keep sudo working"
sudo chage -d $(( $( date +%s ) / 86400 )) vagrant
echo "NOTICE - Updating root passwd"
echo 'password' | sudo passwd --stdin root
echo "NOTICE - updating vagrant sudo config"
sudo chmod 600 /etc/sudoers && sudo sed -i'' "/vagrant/d" /etc/sudoers && sudo chmod 400 /etc/sudoers