forked from simp/inspec-profile-disa_stig-el7
-
Notifications
You must be signed in to change notification settings - Fork 14
/
kitchen.vagrant.yml
34 lines (31 loc) · 936 Bytes
/
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
---
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"
platforms:
- name: rhel-7
driver:
box: generic/centos7
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