forked from jprorama/ohpc-packer
-
Notifications
You must be signed in to change notification settings - Fork 1
/
compute-openstack.json
36 lines (36 loc) · 3.86 KB
/
compute-openstack.json
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
{
"builders":[
{
"type": "openstack",
"image_name": "{{ user `build_instance_name` }}-v{{user `build_version`}}",
"source_image_name": "{{ user `source_image_name` }}",
"flavor": "{{ user `flavor` }}",
"floating_ip": "{{ user `floating_ip` }}",
"networks": ["{{ user `external-net` }}"],
"ssh_host": "{{ user `ssh_host` }}",
"ssh_username": "{{ user `ssh_username` }}",
"ssh_keypair_name": "{{ user `ssh_keypair_name` }}",
"ssh_private_key_file": "{{ user `private_key_file` }}",
"reuse_ips": true
}
],
"provisioners": [
{
"type": "shell",
"inline": [
"sudo sed -i /etc/hosts -e \"s/^127.0.0.1 localhost$/127.0.0.1 localhost $(hostname)/\"",
"sudo yum install -y epel-release",
"sudo yum install -y vim NetworkManager ansible git bash-completion",
"sudo yum install -y basesystem bash redhat-release chkconfig coreutils e2fsprogs ethtool filesystem findutils gawk grep initscripts iproute iputils mingetty mktemp net-tools nfs-utils pam portmap procps psmisc rdate rsync sed setup shadow-utils rsyslog tcp_wrappers tzdata util-linux words zlib tar less gzip which util-linux module-init-tools udev openssh-clients openssh-server dhclient pciutils shadow-utils strace cronie crontabs cpuspeed cpufrequtils cpio wget yum numactl libicu",
"sudo yum install -y PyPAM abrt-addon-ccpp abrt-addon-kerneloops abrt-addon-python abrt-cli abrt-python aide alsa-utils atlas atlas-sse3 audispd-plugins augeas-libs authd biosdevname blktrace bridge-utils brltty cim-schema cpupowerutils crash-gcore-command crash-trace-command device-mapper-multipath device-mapper-persistent-data dstat dumpet edac-utils fftw fftw-devel fftw-static flex flex-devel fprintd-pam freeglut GConf2 gdb-gdbserver gdk-pixbuf2 glibc-utils glibc-devel.i686 gnuplot gsl gsl-devel hardlink hunspell i2c-tools iotop json-c lapack latencytop latencytop-tui latrace ledmon linuxptp lm_sensors lksctp-tools ltrace lvm2 memtest86+ ncurses-term numpy oprofile oprofile-jit papi perf powertop python-volume_key rfkill rsyslog-gnutls rsyslog-gssapi rsyslog-relp scipy scl-utils sdparm sg3_utils sox squashfs-tools star strace tboot trace-cmd udftools units uuidd valgrind vim-X11 vim-enhanced virt-what volume_key wodim x86info zsh SDL abrt abrt-libs abrt-tui audit autoconf automake blas dejavu-fonts-common dejavu-sans-fonts device-mapper-multipath-libs flac fontpackages-filesystem fprintd giflib gnuplot-common gsm jline jpackage-utils latencytop-common libcmpiCppImpl0 libao libasyncns libfprint libesmtp libjpeg-turbo-devel libIDL libproxy libproxy-bin libproxy-python librelp libreport libreport-cli libreport-compat libreport-filesystem libreport-plugin-kerneloops libreport-plugin-logger libreport-plugin-mailx libreport-plugin-reportuploader libreport-plugin-rhtsupport libreport-plugin-ureport libreport-python libsamplerate libsndfile libtar libXdmcp libxkbfile libxshmfence lvm2-libs numpy-f2py ORBit2 pulseaudio-libs pycairo python-argparse python-crypto python-dateutil python-matplotlib python-nose python-paramiko python-setuptools pytz qt-sqlite rhino satyr sg3_utils-libs sgml-common suitesparse theora-tools trousers tzdata-java vim-common vim-filesystem volume_key-libs wavpack xkeyboard-config xinetd xmlrpc-c xmlrpc-c-client xorg-x11-server-common xorg-x11-server-Xvfb xorg-x11-xkb-utils xterm libwsman1 net-snmp-utils openwsman-client openwsman-server perl-Compress-Raw-Zlib perl-Compress-Zlib perl-HTML-Parser perl-HTML-Tagset perl-IO-Compress-Base perl-IO-Compress-Zlib perl-libwww-perl perl-URI sblim-sfcb sblim-sfcc"
]
},
{
"type": "ansible-local",
"playbook_file": "CRI_XCBC/site-build.yaml",
"playbook_dir": "CRI_XCBC",
"inventory_groups": "compute",
"extra_arguments": [ "-b" ]
}
]
}