kameleon-builder 2.2.5 → 2.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/CHANGELOG.rst +21 -0
- data/{templates → contrib}/steps/bootstrap/debian/debootstrap_arm.yaml +1 -1
- data/{templates → contrib}/steps/export/clean_appliance.yaml +0 -0
- data/{templates → contrib}/steps/export/compact_qcow_img.yaml +0 -0
- data/{templates → contrib}/steps/setup/archlinux/configure_ruby.yaml +0 -0
- data/{templates → contrib}/steps/setup/archlinux/install_dev_tools.yaml +0 -0
- data/{templates → contrib}/steps/setup/archlinux/install_gnome.yaml +0 -0
- data/{templates → contrib}/steps/setup/archlinux/install_yaourt.yaml +0 -0
- data/{templates → contrib}/steps/setup/centos/6.5/configure_repo.yaml +0 -0
- data/{templates → contrib}/steps/setup/debian/install_gnome.yaml +0 -0
- data/{templates → contrib}/steps/setup/debian/install_kde.yaml +0 -0
- data/{templates → erb}/extend.erb +2 -2
- data/erb/userconf.erb +5 -0
- data/kameleon-builder.gemspec +6 -1
- data/lib/kameleon.rb +53 -3
- data/lib/kameleon/cli.rb +146 -99
- data/lib/kameleon/engine.rb +20 -8
- data/lib/kameleon/environment.rb +11 -10
- data/lib/kameleon/persistent_cache.rb +1 -9
- data/lib/kameleon/recipe.rb +52 -24
- data/lib/kameleon/repository.rb +46 -0
- data/lib/kameleon/utils.rb +49 -0
- data/{templates → tests/recipes}/steps/aliases/defaults.yaml +0 -0
- data/tests/recipes/steps/bootstrap/linux/bootstrap.yaml +2 -0
- data/tests/recipes/steps/checkpoints/test.yaml +14 -0
- data/tests/recipes/steps/enable_something.yaml +2 -0
- data/tests/recipes/steps/export/save_appliance.yaml +10 -0
- data/tests/recipes/steps/setup/linux/software_install.yaml +7 -0
- data/tests/recipes/test_recipe.yaml +41 -0
- data/version.txt +1 -1
- metadata +34 -139
- data/templates/COPYRIGHT +0 -21
- data/templates/chroot/debian7-amd64.yaml +0 -119
- data/templates/docker/debian7.yaml +0 -107
- data/templates/grid5000/debian7.yaml +0 -97
- data/templates/qemu/archlinux-desktop-i686.yaml +0 -25
- data/templates/qemu/archlinux-desktop-x86_64.yaml +0 -25
- data/templates/qemu/archlinux-i686.yaml +0 -25
- data/templates/qemu/archlinux-x86_64.yaml +0 -109
- data/templates/qemu/centos6.5-x86_64.yaml +0 -122
- data/templates/qemu/centos7-x86_64.yaml +0 -122
- data/templates/qemu/debian7-amd64.yaml +0 -134
- data/templates/qemu/debian7-desktop-amd64.yaml +0 -24
- data/templates/qemu/debian7-kameleon-amd64.yaml +0 -40
- data/templates/qemu/debian7-oar-amd64.yaml +0 -51
- data/templates/qemu/debian8-amd64.yaml +0 -25
- data/templates/qemu/fedora20-desktop-x86_64.yaml +0 -21
- data/templates/qemu/fedora20-x86_64.yaml +0 -119
- data/templates/qemu/ubuntu-12.04-amd64.yaml +0 -132
- data/templates/qemu/ubuntu-12.04-desktop-amd64.yaml +0 -25
- data/templates/qemu/ubuntu-14.04-amd64.yaml +0 -25
- data/templates/qemu/ubuntu-14.04-desktop-amd64.yaml +0 -27
- data/templates/steps/bootstrap/archlinux/arch_bootstrap.yaml +0 -211
- data/templates/steps/bootstrap/centos/6.5/yum_bootstrap.yaml +0 -67
- data/templates/steps/bootstrap/debian/debootstrap.yaml +0 -20
- data/templates/steps/bootstrap/fedora/init_pxeboot.yaml +0 -13
- data/templates/steps/bootstrap/fedora/yum_bootstrap.yaml +0 -45
- data/templates/steps/bootstrap/g5k_reserv.yaml +0 -70
- data/templates/steps/bootstrap/initialize_disk.yaml +0 -16
- data/templates/steps/bootstrap/initialize_disk_chroot.yaml +0 -80
- data/templates/steps/bootstrap/install_requirements.yaml +0 -3
- data/templates/steps/bootstrap/prepare_chroot.yaml +0 -126
- data/templates/steps/bootstrap/prepare_docker.yaml +0 -51
- data/templates/steps/bootstrap/prepare_qemu.yaml +0 -41
- data/templates/steps/bootstrap/prepare_virtualbox.yaml +0 -67
- data/templates/steps/bootstrap/start_chroot.yaml +0 -51
- data/templates/steps/bootstrap/start_docker.yaml +0 -16
- data/templates/steps/bootstrap/start_qemu.yaml +0 -74
- data/templates/steps/bootstrap/start_virtualbox.yaml +0 -38
- data/templates/steps/bootstrap/switch_context_qemu.yaml +0 -84
- data/templates/steps/bootstrap/switch_context_virtualbox.yaml +0 -86
- data/templates/steps/breakpoint.yaml +0 -3
- data/templates/steps/checkpoints/docker.yaml +0 -17
- data/templates/steps/checkpoints/qcow2.yaml +0 -40
- data/templates/steps/checkpoints/qemu.yaml +0 -33
- data/templates/steps/checkpoints/virtualbox.yaml +0 -21
- data/templates/steps/disable_checkpoint.yaml +0 -3
- data/templates/steps/enable_checkpoint.yaml +0 -5
- data/templates/steps/export/qemu_save_appliance.yaml +0 -52
- data/templates/steps/export/save_appliance_from_g5k.yaml +0 -47
- data/templates/steps/export/vagrant_save_appliance.yaml +0 -14
- data/templates/steps/export/virtualbox_save_appliance.yaml +0 -61
- data/templates/steps/setup/archlinux/configure_keyboard.yaml +0 -9
- data/templates/steps/setup/archlinux/configure_network.yaml +0 -9
- data/templates/steps/setup/archlinux/configure_system.yaml +0 -20
- data/templates/steps/setup/archlinux/install_bootloader.yaml +0 -23
- data/templates/steps/setup/archlinux/install_software.yaml +0 -9
- data/templates/steps/setup/autologin.yaml +0 -16
- data/templates/steps/setup/centos/6.5/configure_network.yaml +0 -33
- data/templates/steps/setup/centos/6.5/configure_system.yaml +0 -46
- data/templates/steps/setup/centos/6.5/minimal_install.yaml +0 -3
- data/templates/steps/setup/centos/6.5/setup_vagrant_box.yaml +0 -77
- data/templates/steps/setup/create_group.yaml +0 -12
- data/templates/steps/setup/create_user.yaml +0 -11
- data/templates/steps/setup/debian/configure_apt.yaml +0 -73
- data/templates/steps/setup/debian/configure_kernel.yaml +0 -13
- data/templates/steps/setup/debian/configure_keyboard.yaml +0 -10
- data/templates/steps/setup/debian/configure_network.yaml +0 -30
- data/templates/steps/setup/debian/configure_system.yaml +0 -12
- data/templates/steps/setup/debian/install_bootloader.yaml +0 -36
- data/templates/steps/setup/debian/install_software.yaml +0 -2
- data/templates/steps/setup/debian/oar/oar_debian_config_frontend.yaml +0 -8
- data/templates/steps/setup/debian/oar/oar_debian_config_node.yaml +0 -5
- data/templates/steps/setup/debian/oar/oar_debian_config_server.yaml +0 -5
- data/templates/steps/setup/debian/oar/oar_prereq_install.yaml +0 -16
- data/templates/steps/setup/debian/setup_vagrant_box.yaml +0 -80
- data/templates/steps/setup/debian/upgrade_system.yaml +0 -10
- data/templates/steps/setup/fedora/configure_kernel.yaml +0 -9
- data/templates/steps/setup/fedora/configure_keyboard.yaml +0 -12
- data/templates/steps/setup/fedora/configure_network.yaml +0 -38
- data/templates/steps/setup/fedora/configure_system.yaml +0 -52
- data/templates/steps/setup/fedora/install_bootloader.yaml +0 -53
- data/templates/steps/setup/fedora/install_software.yaml +0 -3
- data/templates/steps/setup/fedora/minimal_install.yaml +0 -3
- data/templates/steps/setup/fedora/update_system.yaml +0 -16
- data/templates/steps/setup/oar/oar_config_devel.yaml +0 -21
- data/templates/steps/setup/oar/oar_config_frontend.yaml +0 -38
- data/templates/steps/setup/oar/oar_config_node.yaml +0 -4
- data/templates/steps/setup/oar/oar_config_server.yaml +0 -25
- data/templates/steps/setup/oar/oar_config_system.yaml +0 -34
- data/templates/steps/setup/oar/oar_devel_prereq_install.yaml +0 -5
- data/templates/steps/setup/oar/oar_git_install.yaml +0 -21
- data/templates/steps/setup/ubuntu/configure_apt.yaml +0 -62
- data/templates/virtualbox/archlinux-desktop-i686.yaml +0 -25
- data/templates/virtualbox/archlinux-desktop-x86_64.yaml +0 -28
- data/templates/virtualbox/archlinux-i686.yaml +0 -28
- data/templates/virtualbox/archlinux-x86_64.yaml +0 -108
- data/templates/virtualbox/centos6.5-i386.yaml +0 -39
- data/templates/virtualbox/centos6.5-vagrant-x86_64.yaml +0 -33
- data/templates/virtualbox/centos6.5-x86_64.yaml +0 -121
- data/templates/virtualbox/centos7-x86_64.yaml +0 -118
- data/templates/virtualbox/debian7-amd64.yaml +0 -128
- data/templates/virtualbox/debian7-desktop-amd64.yaml +0 -25
- data/templates/virtualbox/debian7-i386.yaml +0 -31
- data/templates/virtualbox/debian7-kameleon-amd64.yaml +0 -38
- data/templates/virtualbox/debian7-oar-amd64.yaml +0 -51
- data/templates/virtualbox/debian7-vagrant-amd64.yaml +0 -32
- data/templates/virtualbox/debian8-amd64.yaml +0 -25
- data/templates/virtualbox/debian8-i386.yaml +0 -31
- data/templates/virtualbox/fedora20-x86_64.yaml +0 -118
- data/templates/virtualbox/ubuntu-12.04-amd64.yaml +0 -128
- data/templates/virtualbox/ubuntu-12.04-desktop-amd64.yaml +0 -25
- data/templates/virtualbox/ubuntu-14.04-amd64.yaml +0 -25
- data/templates/virtualbox/ubuntu-14.04-desktop-amd64.yaml +0 -27
- data/tests/recipes/dummy_recipe.yaml +0 -48
- data/tests/recipes/steps/bootstrap/dummy_distro/dummy_bootstrap_static.yaml +0 -4
- data/tests/recipes/steps/export/dummy_save_appliance.yaml +0 -9
- data/tests/recipes/steps/setup/default/dummy_root_passwd.yaml +0 -8
- data/tests/recipes/steps/setup/dummy_distro/dummy_software_install.yaml +0 -7
@@ -1,38 +0,0 @@
|
|
1
|
-
# Network config for Archlinux
|
2
|
-
#
|
3
|
-
# This should work for every systemd powered system
|
4
|
-
- mtu: "1492"
|
5
|
-
|
6
|
-
- set_hostname:
|
7
|
-
- exec_in: echo $$hostname > /etc/hostname
|
8
|
-
|
9
|
-
- enable_network:
|
10
|
-
- exec_in: chkconfig network on
|
11
|
-
|
12
|
-
- set_host:
|
13
|
-
- write_in:
|
14
|
-
- /etc/hosts
|
15
|
-
- |
|
16
|
-
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 $$hostname
|
17
|
-
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 $$hostname
|
18
|
-
|
19
|
-
- set_interface:
|
20
|
-
- write_in:
|
21
|
-
- /etc/sysconfig/network-scripts/ifcfg-eth0
|
22
|
-
- |
|
23
|
-
DEVICE=eth0
|
24
|
-
BOOTPROTO=dhcp
|
25
|
-
ONBOOT=yes
|
26
|
-
HOSTNAME=$$hostname
|
27
|
-
NM_CONTROLLED=no
|
28
|
-
TYPE=Ethernet
|
29
|
-
MTU=$$mtu
|
30
|
-
- write_in:
|
31
|
-
- /etc/sysconfig/network
|
32
|
-
- |
|
33
|
-
NETWORKING=yes
|
34
|
-
HOSTNAME=$$hostname
|
35
|
-
|
36
|
-
- enable_dhcp_service:
|
37
|
-
- exec_in: systemctl disable NetworkManager.service 2>&1
|
38
|
-
- exec_in: systemctl enable network.service 2>&1
|
@@ -1,52 +0,0 @@
|
|
1
|
-
# System configuration
|
2
|
-
#
|
3
|
-
# This will set the locals and the timezone
|
4
|
-
|
5
|
-
- set_locales:
|
6
|
-
# uncomment the locales
|
7
|
-
- exec_in: |
|
8
|
-
echo $$locales | tr ' ' '\n' | xargs -I {} localedef -v -c -i {} -i {} -f UTF-8 $$lang 2>&1 || :
|
9
|
-
|
10
|
-
- set_timezone:
|
11
|
-
- exec_in: ln -sf /usr/share/zoneinfo/$$timezone /etc/localtime
|
12
|
-
|
13
|
-
- set_wheel_sudo:
|
14
|
-
- exec_in: echo "%wheel ALL=(ALL) ALL" >> /etc/sudoers
|
15
|
-
|
16
|
-
- setup_systemd:
|
17
|
-
- exec_in: echo "Setting default runlevel to multiuser text mode"
|
18
|
-
- exec_in: rm -f /etc/systemd/system/default.target
|
19
|
-
- exec_in: ln -s /lib/systemd/system/multi-user.target /etc/systemd/system/default.target
|
20
|
-
- exec_in: systemctl daemon-reload
|
21
|
-
|
22
|
-
- disable_tmpfs_for_tmp:
|
23
|
-
- exec_in: echo "Disabling tmpfs for /tmp."
|
24
|
-
- exec_in: systemctl mask tmp.mount
|
25
|
-
|
26
|
-
- remove_random_seed:
|
27
|
-
- exec_in: echo "Removing random-seed so it's not the same in every image."
|
28
|
-
- exec_in: rm -f /var/lib/random-seed
|
29
|
-
|
30
|
-
- compress_cracklib:
|
31
|
-
- exec_in: gzip -9 /usr/share/cracklib/pw_dict.pwd
|
32
|
-
|
33
|
-
- enable_ntpdate_service:
|
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
|
@@ -1,53 +0,0 @@
|
|
1
|
-
# Install extlinux bootloader
|
2
|
-
- extlinux_timeout: 1
|
3
|
-
|
4
|
-
- install_syslinux:
|
5
|
-
- check_cmd_in: extlinux
|
6
|
-
- exec_in: DISTRIB_TITLE="$$kameleon_recipe_name"
|
7
|
-
- exec_in: extlinux --install /boot/extlinux 2>&1
|
8
|
-
- exec_in: |
|
9
|
-
MBR_PATH=
|
10
|
-
PATHS=("/usr/share/syslinux/mbr.bin"
|
11
|
-
"/usr/lib/bios/syslinux/mbr.bin"
|
12
|
-
"/usr/lib/syslinux/bios/mbr.bin"
|
13
|
-
"/usr/lib/extlinux/mbr.bin"
|
14
|
-
"/usr/lib/syslinux/mbr.bin")
|
15
|
-
for element in "${PATHS[@]}"
|
16
|
-
do
|
17
|
-
if [ -f "$element" ]; then
|
18
|
-
MBR_PATH="$element"
|
19
|
-
break
|
20
|
-
fi
|
21
|
-
done
|
22
|
-
if [ "$MBR_PATH" == "" ]; then
|
23
|
-
fail "unable to locate the extlinux mbr"
|
24
|
-
else
|
25
|
-
dd if="$MBR_PATH" of="$(__find_linux_boot_device | sed 's/[0-9]*//g')" bs=440 2>&1
|
26
|
-
fi
|
27
|
-
- write_in:
|
28
|
-
- /boot/extlinux/extlinux.conf
|
29
|
-
- |
|
30
|
-
# extlinux.conf generated by kameleon
|
31
|
-
ui menu.c32
|
32
|
-
|
33
|
-
menu autoboot Welcome to ${DISTRIB_TITLE^}. Automatic boot in # second{,s}. Press a key for options.
|
34
|
-
menu title ${DISTRIB_TITLE^} Boot Options.
|
35
|
-
menu hidden
|
36
|
-
|
37
|
-
timeout $(( $$extlinux_timeout * 10 ))
|
38
|
-
|
39
|
-
- exec_in: |
|
40
|
-
NAME="$$distrib"
|
41
|
-
FIRST=1
|
42
|
-
for KERNEL in `ls -1rv /boot/vmlinuz*`; do
|
43
|
-
RELEASE=`echo $KERNEL | sed -e 's/^.*vmlinuz-//'`
|
44
|
-
echo "LABEL ${NAME^} $RELEASE" >> /boot/extlinux/extlinux.conf
|
45
|
-
if [ x$FIRST != x ]; then
|
46
|
-
echo " MENU DEFAULT" >> /boot/extlinux/extlinux.conf
|
47
|
-
unset FIRST
|
48
|
-
fi
|
49
|
-
echo " INITRD /boot/initramfs-$RELEASE.img" >> /boot/extlinux/extlinux.conf
|
50
|
-
echo " KERNEL $KERNEL" >> /boot/extlinux/extlinux.conf
|
51
|
-
echo " APPEND root=UUID=`blkid -s UUID -o value $(__find_linux_boot_device)` rw net.ifnames=0 biosdevname=0" >> /boot/extlinux/extlinux.conf
|
52
|
-
echo >> /boot/extlinux/extlinux.conf
|
53
|
-
done
|
@@ -1,16 +0,0 @@
|
|
1
|
-
- configure_yum:
|
2
|
-
- exec_in: echo $$release > /etc/yum/vars/releasever
|
3
|
-
|
4
|
-
- update_system:
|
5
|
-
- exec_in: yum update --releasever=$$release yum -y
|
6
|
-
- exec_in: yum upgrade -y --releasever=$$release
|
7
|
-
- exec_in: yum clean all -y
|
8
|
-
- exec_in: yum distro-sync --releasever=$$release -y
|
9
|
-
|
10
|
-
- clean:
|
11
|
-
- on_setup_clean:
|
12
|
-
- exec_in: test ! -f /var/run/yum.pid || rm -f /var/run/yum.pid $(pgrep yum)
|
13
|
-
- exec_in: echo "Cleaning old yum repodata."
|
14
|
-
- exec_in: yum clean all -y
|
15
|
-
- exec_in: yum history new
|
16
|
-
- exec_in: truncate -c -s 0 /var/log/yum.log
|
@@ -1,21 +0,0 @@
|
|
1
|
-
- update_hostfile:
|
2
|
-
- append_in:
|
3
|
-
- /etc/hosts
|
4
|
-
- |
|
5
|
-
127.0.0.2 node1 node2
|
6
|
-
|
7
|
-
- create_resources:
|
8
|
-
- exec_in: /usr/local/sbin/oarproperty -a core
|
9
|
-
- exec_in: /usr/local/sbin/oarproperty -a cpu
|
10
|
-
- exec_in: /usr/local/sbin/oarnodesetting -a -h node1 -p cpu=0 -p core=0 -p cpuset=0
|
11
|
-
- exec_in: /usr/local/sbin/oarnodesetting -a -h node1 -p cpu=0 -p core=1 -p cpuset=0
|
12
|
-
- exec_in: /usr/local/sbin/oarnodesetting -a -h node1 -p cpu=1 -p core=2 -p cpuset=0
|
13
|
-
- exec_in: /usr/local/sbin/oarnodesetting -a -h node1 -p cpu=1 -p core=3 -p cpuset=0
|
14
|
-
- exec_in: /usr/local/sbin/oarnodesetting -a -h node2 -p cpu=2 -p core=4 -p cpuset=0
|
15
|
-
- exec_in: /usr/local/sbin/oarnodesetting -a -h node2 -p cpu=2 -p core=5 -p cpuset=0
|
16
|
-
- exec_in: /usr/local/sbin/oarnodesetting -a -h node2 -p cpu=3 -p core=6 -p cpuset=0
|
17
|
-
- exec_in: /usr/local/sbin/oarnodesetting -a -h node2 -p cpu=3 -p core=7 -p cpuset=0
|
18
|
-
|
19
|
-
- modify_job_resource_manager:
|
20
|
-
- exec_in: sed -e 's/#exit/exit/' -i /etc/oar/job_resource_manager.pl
|
21
|
-
- exec_in: sed -i 's/job_resource_manager_cgroups\.pl/job_resource_manager\.pl/g' /etc/oar/oar.conf
|
@@ -1,38 +0,0 @@
|
|
1
|
-
- configure_monika:
|
2
|
-
- exec_in: sed -e "s/^\(username.*\)oar.*/\1oar_ro/" -i /etc/oar/monika.conf
|
3
|
-
- exec_in: sed -e "s/^\(password.*\)oar.*/\1oar_ro/" -i /etc/oar/monika.conf
|
4
|
-
- exec_in: sed -e "s/^\(dbtype.*\)mysql.*/\1psql/" -i /etc/oar/monika.conf
|
5
|
-
- exec_in: sed -e "s/^\(dbport.*\)3306.*/\15432/" -i /etc/oar/monika.conf
|
6
|
-
|
7
|
-
- configure_drawgantt_svg:
|
8
|
-
- exec_in: |
|
9
|
-
sed -i "s/\$CONF\['db_type'\]=\"mysql\"/\$CONF\['db_type'\]=\"pg\"/g" /etc/oar/drawgantt-config.inc.php
|
10
|
-
sed -i "s/\$CONF\['db_port'\]=\"3306\"/\$CONF\['db_port'\]=\"5432\"/g" /etc/oar/drawgantt-config.inc.php
|
11
|
-
|
12
|
-
- configure_open_api:
|
13
|
-
- exec_in: perl -pi -e "s/Deny from all/#Deny from all/" /etc/oar/apache2/oar-restful-api.conf
|
14
|
-
|
15
|
-
- configure_basic_auth_api_priv:
|
16
|
-
- write_in:
|
17
|
-
- /etc/oar/apache2/oar-restful-api-priv.conf
|
18
|
-
- |
|
19
|
-
ScriptAlias /oarapi-priv $$oar_prefix_install/lib/cgi-bin/oarapi/oarapi.cgi
|
20
|
-
ScriptAlias /oarapi-priv-debug $$oar_prefix_install/lib/cgi-bin/oarapi/oarapi.cgi
|
21
|
-
<Location /oarapi-priv>
|
22
|
-
Options ExecCGI -MultiViews FollowSymLinks
|
23
|
-
AuthType basic
|
24
|
-
AuthUserfile /etc/oar/api-users
|
25
|
-
AuthName "OAR API authentication"
|
26
|
-
Require valid-user
|
27
|
-
#RequestHeader set X_REMOTE_IDENT %{REMOTE_USER}e
|
28
|
-
RewriteEngine On
|
29
|
-
RewriteCond %{REMOTE_USER} (.*)
|
30
|
-
RewriteRule .* - [E=MY_REMOTE_IDENT:%1]
|
31
|
-
RequestHeader add X-REMOTE_IDENT %{MY_REMOTE_IDENT}e
|
32
|
-
</Location>
|
33
|
-
- exec_in: htpasswd -b -c /etc/oar/api-users $$user_name $$user_name
|
34
|
-
- exec_in: htpasswd -b /etc/oar/api-users oar $$user_name
|
35
|
-
|
36
|
-
- install_chandler:
|
37
|
-
- exec_in: gem install naturalsort --no-ri --no-rdoc
|
38
|
-
- exec_in: cp /home/$$user_name/oar/sources/api/examples/chandler.rb /usr/local/bin/chandler
|
@@ -1,25 +0,0 @@
|
|
1
|
-
- configure_oar_log_level:
|
2
|
-
- exec_in: sed -e 's/^LOG_LEVEL\=\"2\"/LOG_LEVEL\=\"3\"/' -i /etc/oar/oar.conf
|
3
|
-
|
4
|
-
- configure_taktuk:
|
5
|
-
- exec_in: sed -e 's/^#\(TAKTUK_CMD\=\"\/usr\/bin\/taktuk \-t 30 \-s\".*\)/\1/' -i /etc/oar/oar.conf
|
6
|
-
- exec_in: sed -e 's/^#\(PINGCHECKER_TAKTUK_ARG_COMMAND\=\"broadcast exec timeout 5 kill 9 \[ true \]\".*\)/\1/' -i /etc/oar/oar.conf
|
7
|
-
|
8
|
-
- configure_db_type:
|
9
|
-
- exec_in: sed -e 's/^\(DB_TYPE\)=.*/\1="Pg"/' -i /etc/oar/oar.conf
|
10
|
-
- exec_in: sed -e 's/^\(DB_PORT\)=.*/\1="5432"/' -i /etc/oar/oar.conf
|
11
|
-
|
12
|
-
- configure_cpuset:
|
13
|
-
- exec_in: sed -e 's/^#\(JOB_RESOURCE_MANAGER_PROPERTY_DB_FIELD\=\"cpuset\".*\)/\1/' -i /etc/oar/oar.conf
|
14
|
-
- exec_in: sed -e 's/^#\(JOB_RESOURCE_MANAGER_FILE\=\"\/etc\/oar\/job_resource_manager\.pl\".*\)/\1/' -i /etc/oar/oar.conf
|
15
|
-
- exec_in: sed -e 's/^#\(CPUSET_PATH\=\"\/oar\".*\)/\1/' -i /etc/oar/oar.conf
|
16
|
-
|
17
|
-
- configure_database:
|
18
|
-
- exec_in: su postgres -c "psql -c 'DROP DATABASE IF EXISTS oar'"
|
19
|
-
- exec_in: su postgres -c "psql -c 'DROP USER IF EXISTS oar'"
|
20
|
-
- exec_in: su postgres -c "psql -c 'DROP USER IF EXISTS oar_ro'"
|
21
|
-
- exec_in: sed -e 's/^\(DB_BASE_PASSWD\)=.*/\1="oar"/' -i /etc/oar/oar.conf
|
22
|
-
- exec_in: sed -e 's/^\(DB_BASE_LOGIN\)=.*/\1="oar"/' -i /etc/oar/oar.conf
|
23
|
-
- exec_in: sed -e 's/^\(DB_BASE_PASSWD_RO\)=.*/\1="oar_ro"/' -i /etc/oar/oar.conf
|
24
|
-
- exec_in: sed -e 's/^\(DB_BASE_LOGIN_RO\)=.*/\1="oar_ro"/' -i /etc/oar/oar.conf
|
25
|
-
- exec_in: /usr/local/sbin/oar-database --create --db-is-local --db-admin-user root
|
@@ -1,34 +0,0 @@
|
|
1
|
-
- setup_fuse:
|
2
|
-
- exec_in: usermod -a -G fuse $$user_name
|
3
|
-
- append_in:
|
4
|
-
- /etc/fuse.conf
|
5
|
-
- |
|
6
|
-
user_allow_other
|
7
|
-
- motd_config:
|
8
|
-
- write_in:
|
9
|
-
- /etc/motd
|
10
|
-
- |
|
11
|
-
|
12
|
-
************************** WELCOME TO THE OAR APPLIANCE ************************
|
13
|
-
We created 2 fake nodes pointing to localhost (node1 and node2)
|
14
|
-
* You can, for example, submit an interactive job:
|
15
|
-
$ oarsub -I
|
16
|
-
* Or check the API:
|
17
|
-
$ wget -O - http://localhost/oarapi/resources.yaml
|
18
|
-
* Check the API more deeply, submitting a job as the "$$user_name" user:
|
19
|
-
$ curl -i -X POST http://$$user_name:$$user_name@localhost/oarapi-priv/jobs.json \
|
20
|
-
-H'Content-Type: application/json' \
|
21
|
-
-d '{"resource":"/nodes=1,walltime=00:10:00", "command":"sleep 600"}'
|
22
|
-
* Launch the tests:
|
23
|
-
$ cd oar/tests/rspec && make
|
24
|
-
* Mount your local git repository for coding:
|
25
|
-
$ mkdir git
|
26
|
-
$ sshfs -o allow_root your_login@10.0.2.2:git git
|
27
|
-
|
28
|
-
Notes:
|
29
|
-
- if you want to change the keyboard mapping, use:
|
30
|
-
'loadkeys <2_letters_country_code>'
|
31
|
-
- root password is: $$user_name
|
32
|
-
|
33
|
-
********************************************************************************
|
34
|
-
|
@@ -1,21 +0,0 @@
|
|
1
|
-
- fetch_repository:
|
2
|
-
- exec_in: mkdir -p $$oar_git_directory
|
3
|
-
- exec_in: git init $$oar_git_directory
|
4
|
-
- exec_in: git --git-dir $$oar_git_directory/.git --work-tree $$oar_git_directory fetch --depth 0 $$oar_git_repository $$oar_git_treeish
|
5
|
-
- exec_in: git --git-dir $$oar_git_directory/.git --work-tree $$oar_git_directory checkout FETCH_HEAD
|
6
|
-
- exec_in: make -C $$oar_git_directory clean
|
7
|
-
|
8
|
-
- node:
|
9
|
-
- exec_in: make -C $$oar_git_directory PREFIX=$$oar_prefix_install node-build
|
10
|
-
- exec_in: make -C $$oar_git_directory PREFIX=$$oar_prefix_install node-install
|
11
|
-
- exec_in: make -C $$oar_git_directory PREFIX=$$oar_prefix_install node-setup
|
12
|
-
|
13
|
-
- frontend:
|
14
|
-
- exec_in: make -C $$oar_git_directory PREFIX=$$oar_prefix_install user-build tools-build
|
15
|
-
- exec_in: make -C $$oar_git_directory PREFIX=$$oar_prefix_install user-install drawgantt-svg-install monika-install www-conf-install api-install tools-install
|
16
|
-
- exec_in: make -C $$oar_git_directory PREFIX=$$oar_prefix_install user-setup drawgantt-svg-setup monika-setup www-conf-setup api-setup tools-setup
|
17
|
-
|
18
|
-
- server:
|
19
|
-
- exec_in: make -C $$oar_git_directory PREFIX=$$oar_prefix_install server-build
|
20
|
-
- exec_in: make -C $$oar_git_directory PREFIX=$$oar_prefix_install server-install
|
21
|
-
- exec_in: make -C $$oar_git_directory PREFIX=$$oar_prefix_install server-setup
|
@@ -1,62 +0,0 @@
|
|
1
|
-
# Software Install
|
2
|
-
- enable_restricted: true
|
3
|
-
|
4
|
-
|
5
|
-
- configure_apt_to_use_less_disk_space:
|
6
|
-
- write_in:
|
7
|
-
- /etc/apt/apt.conf.d/02compress_indexes
|
8
|
-
- |
|
9
|
-
Acquire::GzipIndexes "true";
|
10
|
-
Acquire::CompressionTypes::Order:: "gz";
|
11
|
-
- write_in:
|
12
|
-
- /etc/apt/apt.conf.d/02nocache
|
13
|
-
- |
|
14
|
-
Dir::Cache {
|
15
|
-
srcpkgcache "";
|
16
|
-
pkgcache "";
|
17
|
-
}
|
18
|
-
- write_in:
|
19
|
-
- /etc/dpkg/dpkg.cfg.d/01_nodoc
|
20
|
-
- |
|
21
|
-
path-exclude /usr/share/doc/*
|
22
|
-
# we need to keep copyright files for legal reasons
|
23
|
-
path-include /usr/share/doc/*/copyright
|
24
|
-
path-exclude /usr/share/man/*
|
25
|
-
path-exclude /usr/share/groff/*
|
26
|
-
path-exclude /usr/share/info/*
|
27
|
-
# lintian stuff is small, but really unnecessary
|
28
|
-
path-exclude /usr/share/lintian/*
|
29
|
-
path-exclude /usr/share/linda/*
|
30
|
-
path-exclude /usr/share/locale/*
|
31
|
-
path-include /usr/share/locale/en*
|
32
|
-
- write_in:
|
33
|
-
- /etc/locale.nopurge
|
34
|
-
- |
|
35
|
-
MANDELETE
|
36
|
-
DONTBOTHERNEWLOCALE
|
37
|
-
SHOWFREEDSPACE
|
38
|
-
#QUICKNDIRTYCALC
|
39
|
-
#VERBOSE
|
40
|
-
|
41
|
-
- enable_universe_and_multiverse:
|
42
|
-
- write_in:
|
43
|
-
- /etc/apt/sources.list
|
44
|
-
- |
|
45
|
-
deb $$repository $$release main universe multiverse
|
46
|
-
|
47
|
-
- enable_restricted:
|
48
|
-
- exec_in: |
|
49
|
-
if [ $$enable_restricted = true ]; then
|
50
|
-
REPO_RESTRICTED="restricted"
|
51
|
-
fi
|
52
|
-
- exec_in: perl -pi -e "s/multiverse$/multiverse $REPO_RESTRICTED/" /etc/apt/sources.list
|
53
|
-
|
54
|
-
- update_repositories:
|
55
|
-
- exec_in: apt-get -y --force-yes update
|
56
|
-
- exec_in: apt-get -y --force-yes install localepurge
|
57
|
-
- on_setup_clean:
|
58
|
-
- exec_in: apt-get -y --force-yes autoclean
|
59
|
-
- exec_in: apt-get -y --force-yes clean
|
60
|
-
- exec_in: apt-get -y --force-yes autoremove
|
61
|
-
- exec_in: localepurge
|
62
|
-
|
@@ -1,25 +0,0 @@
|
|
1
|
-
#==============================================================================
|
2
|
-
# vim: softtabstop=2 shiftwidth=2 expandtab fenc=utf-8 cc=81 tw=80
|
3
|
-
#==============================================================================
|
4
|
-
#
|
5
|
-
# DESCRIPTION: Archlinux GNOME Desktop edition (i686).
|
6
|
-
#
|
7
|
-
#==============================================================================
|
8
|
-
|
9
|
-
---
|
10
|
-
extend: archlinux-i686
|
11
|
-
|
12
|
-
bootstrap:
|
13
|
-
- "@base"
|
14
|
-
|
15
|
-
setup:
|
16
|
-
- "@base"
|
17
|
-
- install_yaourt
|
18
|
-
- install_gnome:
|
19
|
-
- keyboard_layout: en
|
20
|
-
- extra_packages: >
|
21
|
-
firefox-i18n-en-us flashplugin libreoffice libreoffice-en-US telepathy
|
22
|
-
hunspell-en faenza-icon-theme file-roller
|
23
|
-
|
24
|
-
export:
|
25
|
-
- "@base"
|
@@ -1,28 +0,0 @@
|
|
1
|
-
#==============================================================================
|
2
|
-
# vim: softtabstop=2 shiftwidth=2 expandtab fenc=utf-8 cc=81 tw=80
|
3
|
-
#==============================================================================
|
4
|
-
#
|
5
|
-
# DESCRIPTION: Archlinux GNOME Desktop edition (x86_64).
|
6
|
-
#
|
7
|
-
#==============================================================================
|
8
|
-
|
9
|
-
---
|
10
|
-
extend: archlinux-x86_64
|
11
|
-
|
12
|
-
global:
|
13
|
-
virtualbox_memory_size: 1024
|
14
|
-
|
15
|
-
bootstrap:
|
16
|
-
- "@base"
|
17
|
-
|
18
|
-
setup:
|
19
|
-
- "@base"
|
20
|
-
- install_yaourt
|
21
|
-
- install_gnome:
|
22
|
-
- keyboard_layout: en
|
23
|
-
- extra_packages: >
|
24
|
-
firefox-i18n-en-us flashplugin libreoffice libreoffice-en-US telepathy
|
25
|
-
hunspell-en faenza-icon-theme file-roller
|
26
|
-
|
27
|
-
export:
|
28
|
-
- "@base"
|