kameleon-builder 2.2.3 → 2.2.4
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.rst +13 -0
- data/contrib/kameleon_bashrc.sh +6 -6
- data/lib/kameleon/engine.rb +5 -2
- data/lib/kameleon/persistent_cache.rb +43 -25
- data/lib/kameleon/recipe.rb +12 -7
- data/lib/kameleon/step.rb +2 -0
- data/templates/qemu/centos6.5-x86_64.yaml +18 -9
- data/templates/qemu/centos7-x86_64.yaml +4 -1
- data/templates/qemu/fedora20-x86_64.yaml +4 -1
- data/templates/steps/bootstrap/centos/6.5/yum_bootstrap.yaml +65 -0
- data/templates/steps/bootstrap/start_qemu.yaml +4 -2
- data/templates/steps/bootstrap/start_virtualbox.yaml +3 -2
- data/templates/steps/bootstrap/switch_context_qemu.yaml +5 -4
- data/templates/steps/bootstrap/switch_context_virtualbox.yaml +4 -3
- data/templates/steps/export/save_appliance_from_g5k.yaml +1 -1
- data/templates/steps/export/vagrant_save_appliance.yaml +7 -0
- data/templates/steps/export/virtualbox_save_appliance.yaml +0 -6
- data/templates/steps/setup/centos/6.5/configure_repo.yaml +9 -0
- data/templates/steps/setup/centos/6.5/configure_system.yaml +19 -0
- data/templates/steps/setup/centos/6.5/minimal_install.yaml +3 -0
- data/templates/steps/setup/centos/6.5/setup_vagrant_box.yaml +76 -0
- data/templates/steps/setup/debian/setup_vagrant_box.yaml +6 -8
- data/templates/steps/setup/fedora/configure_system.yaml +18 -0
- data/templates/steps/setup/fedora/install_bootloader.yaml +1 -6
- data/templates/steps/setup/fedora/update_system.yaml +1 -1
- data/templates/virtualbox/archlinux-x86_64.yaml +0 -1
- data/templates/virtualbox/centos6.5-vagrant-x86_64.yaml +33 -0
- data/templates/virtualbox/centos6.5-x86_64.yaml +20 -10
- data/templates/virtualbox/centos7-x86_64.yaml +4 -2
- data/templates/virtualbox/debian7-amd64.yaml +11 -13
- data/templates/virtualbox/debian7-vagrant-amd64.yaml +32 -0
- data/templates/virtualbox/fedora20-x86_64.yaml +4 -2
- data/templates/virtualbox/ubuntu-12.04-amd64.yaml +2 -2
- data/version.txt +1 -1
- metadata +26 -12
- checksums.yaml +0 -7
- data/templates/vagrant/debian7-amd64.yaml +0 -130
@@ -7,13 +7,14 @@
|
|
7
7
|
- exec_local: VBoxManage startvm $$virtualbox_vmid --type headless 2>&1
|
8
8
|
- exec_local: |
|
9
9
|
NEXT_WAIT_TIME=0
|
10
|
-
|
10
|
+
SSH_AVAILABLE=0
|
11
|
+
until ssh-keyscan -T 1 -4 -p $$virtualbox_ssh_port localhost 2>&1 | grep -e ssh-rsa -e ssh-dsa &> /dev/null && SSH_AVAILABLE=1 || [ $NEXT_WAIT_TIME -eq $$boot_timeout ];
|
11
12
|
do
|
12
13
|
echo -en "\rWaiting for SSH to become available for out_context...($(( $$boot_timeout - 1 - NEXT_WAIT_TIME++ ))s)"
|
13
14
|
done
|
14
15
|
echo ""
|
15
16
|
- rescue:
|
16
|
-
- exec_local:
|
17
|
+
- exec_local: test $SSH_AVAILABLE -eq 1
|
17
18
|
- breakpoint: Failed to connect to VM via SSH. Please verify the VM successfully booted by looking at the VirtualBox GUI.
|
18
19
|
|
19
20
|
- shutdown_vm:
|
@@ -71,13 +71,14 @@
|
|
71
71
|
- exec_local: echo system_reset | socat - UNIX-CONNECT:$$qemu_monitor_socket
|
72
72
|
- exec_local: |
|
73
73
|
NEXT_WAIT_TIME=0
|
74
|
-
|
74
|
+
SSH_AVAILABLE=0
|
75
|
+
until ssh-keyscan -T 1 -4 -p $$qemu_ssh_port localhost 2>&1 | grep -e ssh-rsa -e ssh-dsa &> /dev/null && SSH_AVAILABLE=1 || [ $NEXT_WAIT_TIME -eq $$reboot_timeout ];
|
75
76
|
do
|
76
|
-
echo -en "\rWaiting for SSH to become available for
|
77
|
+
echo -en "\rWaiting for SSH to become available for out_context...($(( $$reboot_timeout - 1 - NEXT_WAIT_TIME++ ))s)"
|
77
78
|
done
|
78
79
|
echo ""
|
79
80
|
- rescue:
|
80
|
-
- exec_local:
|
81
|
-
- breakpoint: Failed to connect to VM via SSH. Please verify the VM successfully booted
|
81
|
+
- exec_local: test $SSH_AVAILABLE -eq 1
|
82
|
+
- breakpoint: Failed to connect to VM via SSH. Please verify the VM successfully booted with a vnc client.
|
82
83
|
|
83
84
|
- reload_context: out
|
@@ -73,13 +73,14 @@
|
|
73
73
|
- exec_local: VBoxManage startvm $$virtualbox_vmid --type headless 2>&1
|
74
74
|
- exec_local: |
|
75
75
|
NEXT_WAIT_TIME=0
|
76
|
-
|
76
|
+
SSH_AVAILABLE=0
|
77
|
+
until ssh-keyscan -T 1 -4 -p $$virtualbox_ssh_port localhost 2>&1 | grep -e ssh-rsa -e ssh-dsa &> /dev/null && SSH_AVAILABLE=1 || [ $NEXT_WAIT_TIME -eq $$reboot_timeout ];
|
77
78
|
do
|
78
|
-
echo -en "\rWaiting for SSH to become available for
|
79
|
+
echo -en "\rWaiting for SSH to become available for out_context...($(( $$reboot_timeout - 1 - NEXT_WAIT_TIME++ ))s)"
|
79
80
|
done
|
80
81
|
echo ""
|
81
82
|
- rescue:
|
82
|
-
- exec_local:
|
83
|
+
- exec_local: test $SSH_AVAILABLE -eq 1
|
83
84
|
- breakpoint: Failed to connect to VM via SSH. Please verify the VM successfully booted by looking at the VirtualBox GUI.
|
84
85
|
|
85
86
|
- reload_context: out
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
- save_as_g5k:
|
4
4
|
- exec_out: echo "Using tgz g5k to Export the machine"
|
5
|
-
- exec_in: tgz-g5k $$filename.tar.gz
|
5
|
+
- exec_in: tgz-g5k $$in_cwd/$$filename.tar.gz
|
6
6
|
- exec_out: |
|
7
7
|
rsync -avz -e "ssh -F $$out_cwd/ssh_config" \
|
8
8
|
$$kameleon_recipe_name:$$in_cwd/$$filename.tar.gz \
|
@@ -59,9 +59,3 @@
|
|
59
59
|
- check_cmd_local: qemu-img
|
60
60
|
- exec_local: echo "Exporting appliance to $$output.qed..."
|
61
61
|
- exec_local: qemu-img convert -O qed $$virtualbox_image_disk $$output.qed
|
62
|
-
|
63
|
-
- save_as_vagrant_box:
|
64
|
-
- check_cmd_local: vagrant
|
65
|
-
- exec_local: echo "Exporting appliance to $$output.box..."
|
66
|
-
- exec_local: rm -f $$output.box
|
67
|
-
- exec_local: vagrant package --base $$virtualbox_vmid --output $$output.box
|
@@ -2,6 +2,7 @@
|
|
2
2
|
#
|
3
3
|
# This will set the locals and the timezone
|
4
4
|
|
5
|
+
|
5
6
|
- set_locales:
|
6
7
|
# uncomment the locales
|
7
8
|
- exec_in: |
|
@@ -25,3 +26,21 @@
|
|
25
26
|
|
26
27
|
- enable_ntpdate_service:
|
27
28
|
- exec_in: chkconfig ntpd on
|
29
|
+
|
30
|
+
- selinux: permissive
|
31
|
+
- selinuxtype: targeted
|
32
|
+
|
33
|
+
- configure_selinux:
|
34
|
+
- write_in:
|
35
|
+
- /etc/selinux/config
|
36
|
+
- |
|
37
|
+
# This file controls the state of SELinux on the system.
|
38
|
+
# SELINUX= can take one of these three values:
|
39
|
+
# enforcing - SELinux security policy is enforced.
|
40
|
+
# permissive - SELinux prints warnings instead of enforcing.
|
41
|
+
# disabled - SELinux is fully disabled.
|
42
|
+
SELINUX=$$selinux
|
43
|
+
# SELINUXTYPE= type of policy in use. Possible values are:
|
44
|
+
# targeted - Only targeted network daemons are protected.
|
45
|
+
# strict - Full SELinux protection.
|
46
|
+
SELINUXTYPE=$$selinuxtype
|
@@ -0,0 +1,76 @@
|
|
1
|
+
- enable_passwordless_sudo:
|
2
|
+
- exec_in: |
|
3
|
+
sed -i "s/^.*requiretty/#Defaults requiretty/" /etc/sudoers
|
4
|
+
echo "$$user_name ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
|
5
|
+
|
6
|
+
- set_root_password:
|
7
|
+
- exec_in: echo -n 'root:$$user_name' | chpasswd
|
8
|
+
|
9
|
+
- install_vbox_guest_additions:
|
10
|
+
- exec_in: echo "VirtualBox Guest Additions..."
|
11
|
+
- exec_in: |
|
12
|
+
wget --progress=bar:force http://download.virtualbox.org/virtualbox/4.3.8/VBoxGuestAdditions_4.3.8.iso 2>&1
|
13
|
+
- exec_in: mkdir /media/VBoxGuestAdditions
|
14
|
+
- exec_in: mount -o loop VBoxGuestAdditions_4.3.8.iso /media/VBoxGuestAdditions
|
15
|
+
- exec_in: yes|sh /media/VBoxGuestAdditions/VBoxLinuxAdditions.run --nox11 || true 2>&1
|
16
|
+
- exec_in: rm -f VBoxGuestAdditions_4.3.8.iso
|
17
|
+
- exec_in: umount /media/VBoxGuestAdditions
|
18
|
+
- exec_in: rmdir /media/VBoxGuestAdditions
|
19
|
+
|
20
|
+
- install_puppet:
|
21
|
+
- exec_in:
|
22
|
+
- write_in:
|
23
|
+
- /etc/yum.repos.d/puppetlabs.repo
|
24
|
+
- |
|
25
|
+
[puppetlabs-dependencies]
|
26
|
+
name=puppetlabdsdependencies
|
27
|
+
baseurl=http://yum.puppetlabs.com/el/6/dependencies/\$basearch
|
28
|
+
enabled=1
|
29
|
+
gpgcheck=0
|
30
|
+
[puppetlabs]
|
31
|
+
name=puppetlabs
|
32
|
+
baseurl=http://yum.puppetlabs.com/el/6/products/\$basearch
|
33
|
+
enabled=1
|
34
|
+
gpgcheck=0
|
35
|
+
- exec_in: echo "Installing puppet..."
|
36
|
+
- exec_in: yum -y install puppet facter ruby-shadow 2>&1
|
37
|
+
|
38
|
+
- install_chef:
|
39
|
+
- exec_in: curl -L https://www.opscode.com/chef/install.sh -k | bash
|
40
|
+
|
41
|
+
- copy_insecure_sshkey:
|
42
|
+
- exec_in: mkdir -pm 700 /home/$$user_name/.ssh/
|
43
|
+
- exec_in: |
|
44
|
+
wget --progress=bar:force https://raw.github.com/mitchellh/vagrant/master/keys/vagrant -O /home/$$user_name/.ssh/id_rsa 2>&1
|
45
|
+
wget --progress=bar:force https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub -O /home/$$user_name/.ssh/id_rsa.pub 2>&1
|
46
|
+
- exec_in: cp /home/$$user_name/.ssh/id_rsa.pub /home/$$user_name/.ssh/authorized_keys
|
47
|
+
- exec_in: chmod 0600 /home/$$user_name/.ssh/*
|
48
|
+
|
49
|
+
- config_ssh:
|
50
|
+
- exec_in: echo "UseDNS no" >> /etc/ssh/sshd_config
|
51
|
+
- write_in:
|
52
|
+
- /home/$$user_name/.ssh/config
|
53
|
+
- |
|
54
|
+
Host *
|
55
|
+
ForwardX11 no
|
56
|
+
StrictHostKeyChecking no
|
57
|
+
PasswordAuthentication no
|
58
|
+
AddressFamily inet
|
59
|
+
- exec_in: chmod 0600 /home/$$user_name/.ssh/config
|
60
|
+
- exec_in: rsync -ah /home/$$user_name/.ssh/ /root/.ssh/
|
61
|
+
- exec_in: chown "$$user_name:$$user_name" -R /home/$$user_name
|
62
|
+
|
63
|
+
- customize_motd:
|
64
|
+
- exec_in: echo 'Welcome to your Vagrant-built virtual machine.' > /etc/motd
|
65
|
+
|
66
|
+
- cleanup:
|
67
|
+
- exec_in: rm -rf /tmp/* || true
|
68
|
+
- exec_in: rm -rf /var/tmp/* || true
|
69
|
+
- exec_in: echo "cleaning up dhcp leases"
|
70
|
+
- exec_in: rm -f /etc/udev/rules.d/70-persistent-net.rules
|
71
|
+
|
72
|
+
- nullify_freespace:
|
73
|
+
- exec_in: |
|
74
|
+
echo "Nullify freespace..."
|
75
|
+
dd if=/dev/zero of=/bigemptyfile bs=1M 2>&1 >/dev/null || true
|
76
|
+
rm -f /bigemptyfile
|
@@ -20,14 +20,12 @@
|
|
20
20
|
- exec_in: rmdir /media/VBoxGuestAdditions
|
21
21
|
|
22
22
|
- install_puppet:
|
23
|
-
- exec_in:
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
- exec_in: apt-get install puppet -y --force-yes
|
30
|
-
- exec_in: rm -f puppetlabs-release-stable.deb
|
23
|
+
- exec_in: |
|
24
|
+
wget --progress=bar:force http://apt.puppetlabs.com/puppetlabs-release-stable.deb 2>&1
|
25
|
+
dpkg -i puppetlabs-release-stable.deb
|
26
|
+
apt-get update
|
27
|
+
apt-get install puppet -y --force-yes
|
28
|
+
rm -f puppetlabs-release-stable.deb
|
31
29
|
|
32
30
|
- install_chef:
|
33
31
|
- exec_in: curl -L https://www.opscode.com/chef/install.sh -k | bash
|
@@ -32,3 +32,21 @@
|
|
32
32
|
|
33
33
|
- enable_ntpdate_service:
|
34
34
|
- exec_in: systemctl enable ntpdate.service
|
35
|
+
|
36
|
+
- selinux: permissive
|
37
|
+
- selinuxtype: targeted
|
38
|
+
|
39
|
+
- configure_selinux:
|
40
|
+
- write_in:
|
41
|
+
- /etc/selinux/config
|
42
|
+
- |
|
43
|
+
# This file controls the state of SELinux on the system.
|
44
|
+
# SELINUX= can take one of these three values:
|
45
|
+
# enforcing - SELinux security policy is enforced.
|
46
|
+
# permissive - SELinux prints warnings instead of enforcing.
|
47
|
+
# disabled - SELinux is fully disabled.
|
48
|
+
SELINUX=$$selinux
|
49
|
+
# SELINUXTYPE= type of policy in use. Possible values are:
|
50
|
+
# targeted - Only targeted network daemons are protected.
|
51
|
+
# strict - Full SELinux protection.
|
52
|
+
SELINUXTYPE=$$selinuxtype
|
@@ -36,11 +36,6 @@
|
|
36
36
|
|
37
37
|
timeout $(( $$extlinux_timeout * 10 ))
|
38
38
|
|
39
|
-
- exec_in: |
|
40
|
-
if [ $$disable_selinux = true ]; then
|
41
|
-
SELINUX="selinux=0"
|
42
|
-
fi
|
43
|
-
|
44
39
|
- exec_in: |
|
45
40
|
NAME="$$distrib"
|
46
41
|
FIRST=1
|
@@ -53,6 +48,6 @@
|
|
53
48
|
fi
|
54
49
|
echo " INITRD /boot/initramfs-$RELEASE.img" >> /boot/extlinux/extlinux.conf
|
55
50
|
echo " KERNEL $KERNEL" >> /boot/extlinux/extlinux.conf
|
56
|
-
echo " APPEND root=UUID=`blkid -s UUID -o value $(__find_linux_boot_device)` rw net.ifnames=0 biosdevname=0
|
51
|
+
echo " APPEND root=UUID=`blkid -s UUID -o value $(__find_linux_boot_device)` rw net.ifnames=0 biosdevname=0" >> /boot/extlinux/extlinux.conf
|
57
52
|
echo >> /boot/extlinux/extlinux.conf
|
58
53
|
done
|
@@ -13,6 +13,6 @@
|
|
13
13
|
- on_setup_clean:
|
14
14
|
- exec_in: test ! -f /var/run/yum.pid || rm -f /var/run/yum.pid $(pgrep yum)
|
15
15
|
- exec_in: echo "Cleaning old yum repodata."
|
16
|
-
- exec_in: yum clean all
|
16
|
+
- exec_in: yum clean all -y
|
17
17
|
- exec_in: yum history new
|
18
18
|
- exec_in: truncate -c -s 0 /var/log/yum.log
|
@@ -0,0 +1,33 @@
|
|
1
|
+
#==============================================================================
|
2
|
+
# vim: softtabstop=2 shiftwidth=2 expandtab fenc=utf-8 cc=81 tw=80
|
3
|
+
#==============================================================================
|
4
|
+
#
|
5
|
+
# DESCRIPTION: A standard Centos 6.5 vagrant base box (amd64)
|
6
|
+
#
|
7
|
+
#==============================================================================
|
8
|
+
|
9
|
+
---
|
10
|
+
extend: centos6.5-x86_64
|
11
|
+
|
12
|
+
global:
|
13
|
+
## User varibales : used by the recipe
|
14
|
+
user_name: vagrant
|
15
|
+
|
16
|
+
#== Bootstrap the new system and create the 'in_context'
|
17
|
+
bootstrap:
|
18
|
+
- "@base"
|
19
|
+
|
20
|
+
#== Install and configuration steps
|
21
|
+
setup:
|
22
|
+
- "@base"
|
23
|
+
- install_software:
|
24
|
+
- packages: >
|
25
|
+
gcc make gcc-c++ kernel-devel-`uname -r` zlib-devel
|
26
|
+
openssl-devel readline-devel sqlite-devel perl wget dkms nfs-utils
|
27
|
+
- setup_vagrant_box
|
28
|
+
|
29
|
+
#== Export the generated appliance in the format of your choice
|
30
|
+
export:
|
31
|
+
- disable_checkpoint
|
32
|
+
- vagrant_save_appliance:
|
33
|
+
- output: "$$kameleon_cwd/$${kameleon_recipe_name}"
|
@@ -47,7 +47,10 @@ global:
|
|
47
47
|
- $$distrib
|
48
48
|
- "fedora"
|
49
49
|
|
50
|
-
|
50
|
+
# SELinux configuration
|
51
|
+
selinux: permissive ## Can take one of these three values: enforcing, permissive or disabled
|
52
|
+
selinuxtype: targeted # Possible values are: strict, targeted
|
53
|
+
|
51
54
|
ssh_config_file: $$kameleon_cwd/ssh_config
|
52
55
|
out_context:
|
53
56
|
cmd: ssh -F $$ssh_config_file $${kameleon_recipe_name} -t /bin/bash
|
@@ -55,32 +58,40 @@ global:
|
|
55
58
|
proxy_cache: 10.0.2.2
|
56
59
|
|
57
60
|
in_context:
|
58
|
-
cmd: ssh -F $$ssh_config_file $${kameleon_recipe_name} -t
|
61
|
+
cmd: ssh -F $$ssh_config_file $${kameleon_recipe_name} -t /bin/bash
|
59
62
|
workdir: /root/kameleon_workdir
|
60
63
|
proxy_cache: 10.0.2.2
|
61
64
|
|
65
|
+
#== Bootstrap the new system and create the 'in_context'
|
62
66
|
bootstrap:
|
63
67
|
- enable_checkpoint
|
64
68
|
- prepare_virtualbox
|
65
69
|
- start_virtualbox
|
66
70
|
- install_requirements:
|
67
|
-
- packages: parted e2fsprogs yum rpm lynx
|
68
|
-
- initialize_disk
|
71
|
+
- packages: parted e2fsprogs yum rpm lynx extlinux
|
72
|
+
- initialize_disk
|
69
73
|
- yum_bootstrap:
|
70
74
|
- mirror_packages_url: http://mirrors.kernel.org/$$distrib/$$release/os/$$arch/Packages/
|
71
|
-
- include_pkgs:
|
72
|
-
|
75
|
+
- include_pkgs: >
|
76
|
+
findutils yum util-linux dhclient vim-minimal net-tools openssh-server
|
77
|
+
kernel kernel-devel acpid
|
78
|
+
- switch_context_virtualbox
|
73
79
|
|
74
80
|
#== Install and configuration steps
|
75
81
|
setup:
|
76
82
|
- configure_kernel
|
83
|
+
- configure_repo
|
77
84
|
- update_system
|
78
85
|
- minimal_install
|
79
86
|
- install_software:
|
80
87
|
- packages: >
|
81
|
-
|
82
|
-
|
83
|
-
|
88
|
+
syslinux-extlinux kbd sudo openssh-clients ntp ntpdate
|
89
|
+
rsync bridge-utils bzip2 cronie cronie-anacron crontabs
|
90
|
+
dash dhclient dhcp-common dracut dracut-kernel file fuse gnupg2
|
91
|
+
iptables-ipv6 libuser logrotate m4 openssh-server passwd
|
92
|
+
pciutils-libs rsyslog dbus system-config-firewall-base which
|
93
|
+
findutils yum util-linux vim-minimal net-tools openssh-server
|
94
|
+
kernel kernel-devel acpid
|
84
95
|
- install_bootloader
|
85
96
|
- configure_system:
|
86
97
|
- locales: POSIX C en_US fr_FR de_DE
|
@@ -108,4 +119,3 @@ export:
|
|
108
119
|
# - save_as_raw
|
109
120
|
# - save_as_qcow2
|
110
121
|
# - save_as_qed
|
111
|
-
# - save_as_vagrant_box
|
@@ -46,7 +46,10 @@ global:
|
|
46
46
|
- $$distrib
|
47
47
|
- "fedora"
|
48
48
|
|
49
|
-
|
49
|
+
# SELinux configuration
|
50
|
+
selinux: permissive ## Can take one of these three values: enforcing, permissive or disabled
|
51
|
+
selinuxtype: targeted # Possible values are: strict, targeted
|
52
|
+
|
50
53
|
ssh_config_file: $$kameleon_cwd/ssh_config
|
51
54
|
out_context:
|
52
55
|
cmd: ssh -F $$ssh_config_file $${kameleon_recipe_name} -t /bin/bash
|
@@ -113,4 +116,3 @@ export:
|
|
113
116
|
# - save_as_raw
|
114
117
|
# - save_as_qcow2
|
115
118
|
# - save_as_qed
|
116
|
-
# - save_as_vagrant_box
|
@@ -37,6 +37,7 @@ global:
|
|
37
37
|
insecure_ssh_key_url: http://kameleon.imag.fr/iso/boot2debian/keys/insecure_id_rsa
|
38
38
|
|
39
39
|
## Rootfs options
|
40
|
+
disk_device: /dev/sda
|
40
41
|
rootfs: /rootfs
|
41
42
|
filesystem_type: ext4
|
42
43
|
|
@@ -58,7 +59,7 @@ global:
|
|
58
59
|
proxy_cache: 10.0.2.2
|
59
60
|
|
60
61
|
in_context:
|
61
|
-
cmd: ssh -F $$ssh_config_file $${kameleon_recipe_name} -t
|
62
|
+
cmd: ssh -F $$ssh_config_file $${kameleon_recipe_name} -t /bin/bash
|
62
63
|
workdir: /root/kameleon_workdir
|
63
64
|
proxy_cache: 10.0.2.2
|
64
65
|
|
@@ -68,17 +69,18 @@ bootstrap:
|
|
68
69
|
- prepare_virtualbox
|
69
70
|
- start_virtualbox
|
70
71
|
- install_requirements:
|
71
|
-
- packages: parted e2fsprogs debootstrap
|
72
|
-
- initialize_disk
|
73
|
-
- disk_device: /dev/sda
|
72
|
+
- packages: parted e2fsprogs debootstrap extlinux
|
73
|
+
- initialize_disk
|
74
74
|
- debootstrap:
|
75
|
-
- include_pkg:
|
75
|
+
- include_pkg: >
|
76
|
+
apt-utils ca-certificates locales less linux-image-$$kernel_arch
|
77
|
+
isc-dhcp-client ifupdown iptables iputils-ping iproute pciutils
|
78
|
+
psmisc acpid acpi-support-base openssh-server sysvinit
|
76
79
|
- release: $$release
|
77
80
|
- arch: $$arch
|
78
81
|
- repository: $$apt_repository
|
79
|
-
- enable_cache: true
|
80
82
|
- variant: minbase
|
81
|
-
-
|
83
|
+
- switch_context_virtualbox
|
82
84
|
|
83
85
|
#== Install and configuration steps
|
84
86
|
setup:
|
@@ -91,11 +93,8 @@ setup:
|
|
91
93
|
- dist_upgrade: true
|
92
94
|
- install_software:
|
93
95
|
- packages: >
|
94
|
-
debian-keyring ntp sudo less vim bash-completion curl less
|
95
|
-
|
96
|
-
iptables iputils-ping iproute pciutils psmisc extlinux acpid
|
97
|
-
acpi-support-base dialog htop tree openssh-server
|
98
|
-
- configure_kernel
|
96
|
+
debian-keyring ntp sudo less vim bash-completion curl less bzip2 wget
|
97
|
+
dialog htop tree extlinux
|
99
98
|
- install_bootloader
|
100
99
|
# Configuration
|
101
100
|
- configure_system:
|
@@ -126,4 +125,3 @@ export:
|
|
126
125
|
# - save_as_raw
|
127
126
|
# - save_as_qcow2
|
128
127
|
# - save_as_qed
|
129
|
-
# - save_as_vagrant_box
|