4 # shellcheck disable=SC1091
6 # shellcheck disable=SC1091
9 # Update to latest packages first
12 # Install required packages
28 sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 1
29 sudo update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 1
33 if [[ $(cat ~/.bashrc) != *PYENV_ROOT* ]]; then
34 if ! [ -d "$HOME/.pyenv" ] ; then
35 git clone git://github.com/yyuu/pyenv.git ~/.pyenv
37 # shellcheck disable=SC2016
38 # shellcheck disable=SC2129
39 echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc
40 # shellcheck disable=SC2016
41 echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc
42 # shellcheck disable=SC2016
43 echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n eval "$(pyenv init -)"\nfi' >> ~/.bashrc
46 if [[ $PATH != *pyenv* ]]; then
47 export PYENV_ROOT="$HOME/.pyenv"
48 export PATH="$PYENV_ROOT/bin:$PATH"
49 if command -v pyenv 1>/dev/null 2>&1; then
50 eval "$(pyenv init -)"
54 # There are some packages which are newer in the tripleo repos
56 # Setup yarn and nodejs repositories
57 #sudo curl -sL https://dl.yarnpkg.com/rpm/yarn.repo -o /etc/yum.repos.d/yarn.repo
58 curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
59 #curl -sL https://rpm.nodesource.com/setup_10.x | sudo bash -
60 echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
62 # Add this repository to install Golang 1.12
63 sudo add-apt-repository -y ppa:longsleep/golang-backports
65 # Update some packages from new repos
68 # make sure additional requirments are installed
70 ##No bind-utils. It is for host, nslookop,..., no need in ubuntu
76 libvirt-bin libvirt-clients libvirt-dev \
82 # Install python packages not included as rpms
89 python-ironic-inspector-client \
94 libvirt-python==5.7.0 \