suse=false
[[ $codename =~ suse ]] && suse=true
+[[ $codename =~ sle ]] && suse=true
if [ "$suse" = true ] ; then
- sudo zypper -n install git
+ sudo zypper -n install --no-recommends git
else
sudo yum install -y git
fi
# included in the distribution.
#
git clean -qdxff
- #
- # creating the distribution tarbal requires some configure
- # options (otherwise parts of the source tree will be left out).
- #
- if [ "$suse" = true ] ; then
- sudo zypper -n install bzip2
- else
- sudo yum install -y bzip2
- fi
# autotools only works in jewel and below
if [[ ! -e "make-dist" ]] ; then
+ # lsb-release is required by install-deps.sh
+ # which is required by autogen.sh
+ if [ "$suse" = true ] ; then
+ sudo zypper -n install bzip2 lsb-release which
+ else
+ sudo yum install -y bzip2 redhat-lsb-core which
+ fi
./autogen.sh
+ #
+ # creating the distribution tarball requires some configure
+ # options (otherwise parts of the source tree will be left out).
+ #
./configure $(flavor2configure $flavor) --with-debug --with-radosgw --with-fuse --with-libatomic-ops --with-gtk2 --with-nss
#
-e '/^Epoch:/d' \
-e 's/%bcond_with ceph_test_package/%bcond_without ceph_test_package/' \
-e "s/^Source0:.*$/Source0: $CEPH_TARBALL/" \
+ -e '/^Source9/d' \
ceph.spec
fi
buildarea=`readlink -fn ${releasedir}` ### rpm wants absolute path
--- /dev/null
+#cloud-config
+bootcmd:
+ - echo nameserver 8.8.8.8 | tee -a /etc/resolv.conf # last resort, in case the DHCP server does not provide a resolver
+ - SUSEConnect -p sle-sdk/12.2/x86_64
+manage_etc_hosts: true
+preserve_hostname: true
+users:
+ - name: ubuntu
+ gecos: User
+ sudo: ["ALL=(ALL) NOPASSWD:ALL"]
+ groups: users
+runcmd:
+ - ( MYHOME=/home/ubuntu ; mkdir $MYHOME/.ssh ; chmod 700 $MYHOME/.ssh ; cp /root/.ssh/authorized_keys $MYHOME/.ssh ; chown -R ubuntu.users $MYHOME/.ssh )
+ - zypper --non-interactive install --no-recommends python wget git ntp rsyslog lsb-release
+final_message: "READYTORUN"
--- /dev/null
+#cloud-config
+bootcmd:
+ - echo nameserver 8.8.8.8 | tee -a /etc/resolv.conf # last resort, in case the DHCP server does not provide a resolver
+ - SUSEConnect -p sle-sdk/12.2/x86_64
+manage_etc_hosts: true
+preserve_hostname: true
+users:
+ - name: ubuntu
+ gecos: User
+ sudo: ["ALL=(ALL) NOPASSWD:ALL"]
+ groups: users
+runcmd:
+ - ( MYHOME=/home/ubuntu ; mkdir $MYHOME/.ssh ; chmod 700 $MYHOME/.ssh ; cp /root/.ssh/authorized_keys $MYHOME/.ssh ; chown -R ubuntu.users $MYHOME/.ssh )
+ - zypper --non-interactive install --no-recommends python wget git ntp rsyslog lsb-release
+final_message: "READYTORUN"