| Dominik Fleischmann | 5e4a751 | 2020-03-06 14:05:06 +0100 | [diff] [blame] | 1 | #! /bin/bash |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | # |
| David Garcia | 4237521 | 2020-04-27 19:07:49 +0200 | [diff] [blame] | 15 | |
| 16 | # set -eux |
| 17 | |
| 18 | K8S_CLOUD_NAME="k8s-cloud" |
| David Garcia | 69388c2 | 2020-05-07 12:14:19 +0200 | [diff] [blame] | 19 | IMAGES_OVERLAY_FILE=~/.osm/images-overlay.yaml |
| Dominik Fleischmann | 5e4a751 | 2020-03-06 14:05:06 +0100 | [diff] [blame] | 20 | function check_arguments(){ |
| 21 | while [ $# -gt 0 ] ; do |
| David Garcia | 4237521 | 2020-04-27 19:07:49 +0200 | [diff] [blame] | 22 | case $1 in |
| 23 | --bundle) BUNDLE="$2" ;; |
| Dominik Fleischmann | 7a97a4c | 2020-06-04 10:52:05 +0200 | [diff] [blame] | 24 | --k8s) KUBECFG="$2" ;; |
| 25 | --vca) CONTROLLER="$2" ;; |
| 26 | --lxd) LXD_CLOUD="$2" ;; |
| 27 | --lxd-cred) LXD_CREDENTIALS="$2" ;; |
| David Garcia | 69388c2 | 2020-05-07 12:14:19 +0200 | [diff] [blame] | 28 | --microstack) MICROSTACK=y ;; |
| Dominik Fleischmann | c57296f | 2020-06-09 11:45:08 +0200 | [diff] [blame] | 29 | --ha) BUNDLE="osm-ha" ;; |
| David Garcia | 69388c2 | 2020-05-07 12:14:19 +0200 | [diff] [blame] | 30 | --tag) TAG="$2" ;; |
| David Garcia | 4237521 | 2020-04-27 19:07:49 +0200 | [diff] [blame] | 31 | esac |
| 32 | shift |
| Dominik Fleischmann | 5e4a751 | 2020-03-06 14:05:06 +0100 | [diff] [blame] | 33 | done |
| 34 | |
| David Garcia | 4237521 | 2020-04-27 19:07:49 +0200 | [diff] [blame] | 35 | # echo $BUNDLE $KUBECONFIG $LXDENDPOINT |
| Dominik Fleischmann | 5e4a751 | 2020-03-06 14:05:06 +0100 | [diff] [blame] | 36 | } |
| 37 | function install_snaps(){ |
| Dominik Fleischmann | c57296f | 2020-06-09 11:45:08 +0200 | [diff] [blame] | 38 | sudo snap install juju --classic --channel=2.7/stable |
| 39 | [ ! -v KUBECFG ] && sudo snap install microk8s --classic && sudo usermod -a -G microk8s `whoami` && mkdir -p ~/.kube && sudo chown -f -R `whoami` ~/.kube |
| Dominik Fleischmann | 5e4a751 | 2020-03-06 14:05:06 +0100 | [diff] [blame] | 40 | } |
| 41 | |
| 42 | function bootstrap_k8s_lxd(){ |
| David Garcia | 4237521 | 2020-04-27 19:07:49 +0200 | [diff] [blame] | 43 | [ -v CONTROLLER ] && ADD_K8S_OPTS="--controller ${CONTROLLER}" && CONTROLLER_NAME=$CONTROLLER |
| 44 | [ ! -v CONTROLLER ] && ADD_K8S_OPTS="--client" && BOOTSTRAP_NEEDED="yes" && CONTROLLER_NAME="controller" |
| 45 | |
| 46 | if [ -v KUBECFG ]; then |
| 47 | cat $KUBECFG | juju add-k8s $K8S_CLOUD_NAME $ADD_K8S_OPTS |
| 48 | [ -v BOOTSTRAP_NEEDED ] && juju bootstrap $K8S_CLOUD_NAME $CONTROLLER_NAME |
| Dominik Fleischmann | 5e4a751 | 2020-03-06 14:05:06 +0100 | [diff] [blame] | 49 | else |
| David Garcia | 4237521 | 2020-04-27 19:07:49 +0200 | [diff] [blame] | 50 | sg microk8s -c "microk8s.enable storage dns" |
| Dominik Fleischmann | c57296f | 2020-06-09 11:45:08 +0200 | [diff] [blame] | 51 | while true |
| 52 | do |
| 53 | sg microk8s -c "microk8s.status" | grep 'storage: enabled' |
| 54 | if [ $? -eq 0 ]; then |
| 55 | break |
| 56 | fi |
| 57 | sleep 1 |
| 58 | done |
| David Garcia | 4237521 | 2020-04-27 19:07:49 +0200 | [diff] [blame] | 59 | |
| 60 | [ ! -v BOOTSTRAP_NEEDED ] && sg microk8s -c "microk8s.config" | juju add-k8s $K8S_CLOUD_NAME $ADD_K8S_OPTS |
| 61 | [ -v BOOTSTRAP_NEEDED ] && sg microk8s -c "juju bootstrap microk8s $CONTROLLER_NAME" && K8S_CLOUD_NAME=microk8s |
| Dominik Fleischmann | 5e4a751 | 2020-03-06 14:05:06 +0100 | [diff] [blame] | 62 | fi |
| 63 | |
| David Garcia | 4237521 | 2020-04-27 19:07:49 +0200 | [diff] [blame] | 64 | if [ -v LXD_CLOUD ]; then |
| 65 | if [ ! -v LXD_CREDENTIALS ]; then |
| Dominik Fleischmann | 5e4a751 | 2020-03-06 14:05:06 +0100 | [diff] [blame] | 66 | echo "The installer needs the LXD server certificate if the LXD is external" |
| 67 | exit 1 |
| 68 | fi |
| 69 | else |
| 70 | LXDENDPOINT=$DEFAULT_IP |
| David Garcia | 4237521 | 2020-04-27 19:07:49 +0200 | [diff] [blame] | 71 | LXD_CLOUD=~/.osm/lxd-cloud.yaml |
| 72 | LXD_CREDENTIALS=~/.osm/lxd-credentials.yaml |
| 73 | # Apply sysctl production values for optimal performance |
| 74 | sudo cp /usr/share/osm-devops/installers/60-lxd-production.conf /etc/sysctl.d/60-lxd-production.conf |
| 75 | sudo sysctl --system |
| 76 | # Install LXD snap |
| 77 | sudo apt-get remove --purge -y liblxc1 lxc-common lxcfs lxd lxd-client |
| 78 | sudo snap install lxd |
| 79 | sudo apt-get install zfsutils-linux -y |
| 80 | # Configure LXD |
| 81 | sudo usermod -a -G lxd `whoami` |
| 82 | cat /usr/share/osm-devops/installers/lxd-preseed.conf | sed 's/^config: {}/config:\n core.https_address: '$LXDENDPOINT':8443/' | sg lxd -c "lxd init --preseed" |
| 83 | sg lxd -c "lxd waitready" |
| 84 | DEFAULT_MTU=$(ip addr show $DEFAULT_IF | perl -ne 'if (/mtu\s(\d+)/) {print $1;}') |
| 85 | sg lxd -c "lxc profile device set default eth0 mtu $DEFAULT_MTU" |
| David Garcia | d00e49c | 2020-06-19 10:33:37 +0200 | [diff] [blame] | 86 | sg lxd -c "lxc network set lxdbr0 bridge.mtu $DEFAULT_MTU" |
| Dominik Fleischmann | 5e4a751 | 2020-03-06 14:05:06 +0100 | [diff] [blame] | 87 | |
| David Garcia | 4237521 | 2020-04-27 19:07:49 +0200 | [diff] [blame] | 88 | cat << EOF > $LXD_CLOUD |
| Dominik Fleischmann | 5e4a751 | 2020-03-06 14:05:06 +0100 | [diff] [blame] | 89 | clouds: |
| 90 | lxd-cloud: |
| 91 | type: lxd |
| 92 | auth-types: [certificate] |
| 93 | endpoint: "https://$LXDENDPOINT:8443" |
| 94 | config: |
| 95 | ssl-hostname-verification: false |
| 96 | EOF |
| David Garcia | 4237521 | 2020-04-27 19:07:49 +0200 | [diff] [blame] | 97 | openssl req -nodes -new -x509 -keyout ~/.osm/client.key -out ~/.osm/client.crt -days 365 -subj "/C=FR/ST=Nice/L=Nice/O=ETSI/OU=OSM/CN=osm.etsi.org" |
| 98 | local server_cert=`cat /var/snap/lxd/common/lxd/server.crt | sed 's/^/ /'` |
| 99 | local client_cert=`cat ~/.osm/client.crt | sed 's/^/ /'` |
| 100 | local client_key=`cat ~/.osm/client.key | sed 's/^/ /'` |
| Dominik Fleischmann | 5e4a751 | 2020-03-06 14:05:06 +0100 | [diff] [blame] | 101 | |
| David Garcia | 4237521 | 2020-04-27 19:07:49 +0200 | [diff] [blame] | 102 | cat << EOF > $LXD_CREDENTIALS |
| Dominik Fleischmann | 5e4a751 | 2020-03-06 14:05:06 +0100 | [diff] [blame] | 103 | credentials: |
| 104 | lxd-cloud: |
| David Garcia | 4237521 | 2020-04-27 19:07:49 +0200 | [diff] [blame] | 105 | lxd-cloud: |
| Dominik Fleischmann | 5e4a751 | 2020-03-06 14:05:06 +0100 | [diff] [blame] | 106 | auth-type: certificate |
| 107 | server-cert: | |
| 108 | $server_cert |
| 109 | client-cert: | |
| 110 | $client_cert |
| 111 | client-key: | |
| 112 | $client_key |
| 113 | EOF |
| David Garcia | 4237521 | 2020-04-27 19:07:49 +0200 | [diff] [blame] | 114 | lxc config trust add local: ~/.osm/client.crt |
| 115 | fi |
| Dominik Fleischmann | 5e4a751 | 2020-03-06 14:05:06 +0100 | [diff] [blame] | 116 | |
| David Garcia | 4237521 | 2020-04-27 19:07:49 +0200 | [diff] [blame] | 117 | juju add-cloud -c $CONTROLLER_NAME lxd-cloud $LXD_CLOUD --force |
| 118 | juju add-credential -c $CONTROLLER_NAME lxd-cloud -f $LXD_CREDENTIALS |
| 119 | sg lxd -c "lxd waitready" |
| 120 | juju add-model test lxd-cloud || true |
| Dominik Fleischmann | 5e4a751 | 2020-03-06 14:05:06 +0100 | [diff] [blame] | 121 | } |
| 122 | |
| 123 | function deploy_charmed_osm(){ |
| 124 | create_overlay |
| 125 | echo "Creating OSM model" |
| David Garcia | 4237521 | 2020-04-27 19:07:49 +0200 | [diff] [blame] | 126 | if [ -v KUBECFG ]; then |
| 127 | juju add-model osm $K8S_CLOUD_NAME |
| Dominik Fleischmann | 5e4a751 | 2020-03-06 14:05:06 +0100 | [diff] [blame] | 128 | else |
| David Garcia | 4237521 | 2020-04-27 19:07:49 +0200 | [diff] [blame] | 129 | sg microk8s -c "juju add-model osm $K8S_CLOUD_NAME" |
| Dominik Fleischmann | 5e4a751 | 2020-03-06 14:05:06 +0100 | [diff] [blame] | 130 | fi |
| 131 | echo "Deploying OSM with charms" |
| David Garcia | 4237521 | 2020-04-27 19:07:49 +0200 | [diff] [blame] | 132 | # echo $BUNDLE |
| 133 | if [ -v BUNDLE ]; then |
| Dominik Fleischmann | 5e4a751 | 2020-03-06 14:05:06 +0100 | [diff] [blame] | 134 | juju deploy $BUNDLE --overlay ~/.osm/vca-overlay.yaml |
| 135 | else |
| David Garcia | 69388c2 | 2020-05-07 12:14:19 +0200 | [diff] [blame] | 136 | images_overlay="" |
| 137 | [ -v TAG ] && generate_images_overlay && images_overlay="--overlay $IMAGES_OVERLAY_FILE" |
| 138 | juju deploy osm --overlay ~/.osm/vca-overlay.yaml $images_overlay |
| Dominik Fleischmann | 5e4a751 | 2020-03-06 14:05:06 +0100 | [diff] [blame] | 139 | fi |
| 140 | echo "Waiting for deployment to finish..." |
| 141 | check_osm_deployed &> /dev/null |
| 142 | echo "OSM with charms deployed" |
| David Garcia | 4237521 | 2020-04-27 19:07:49 +0200 | [diff] [blame] | 143 | sg microk8s -c "microk8s.enable ingress" |
| Dominik Fleischmann | 5e4a751 | 2020-03-06 14:05:06 +0100 | [diff] [blame] | 144 | juju config ui-k8s juju-external-hostname=osm.$DEFAULT_IP.xip.io |
| 145 | juju expose ui-k8s |
| 146 | } |
| 147 | |
| 148 | function check_osm_deployed() { |
| 149 | while true |
| 150 | do |
| Dominik Fleischmann | c57296f | 2020-06-09 11:45:08 +0200 | [diff] [blame] | 151 | pod_name=`sg microk8s -c "microk8s.kubectl -n osm get pods | grep ui-k8s | grep -v operator" | awk '{print $1; exit}'` |
| 152 | |
| David Garcia | 4237521 | 2020-04-27 19:07:49 +0200 | [diff] [blame] | 153 | if [[ `sg microk8s -c "microk8s.kubectl -n osm wait pod $pod_name --for condition=Ready"` ]]; then |
| 154 | if [[ `sg microk8s -c "microk8s.kubectl -n osm wait pod lcm-k8s-0 --for condition=Ready"` ]]; then |
| Dominik Fleischmann | 5e4a751 | 2020-03-06 14:05:06 +0100 | [diff] [blame] | 155 | break |
| 156 | fi |
| 157 | fi |
| 158 | sleep 10 |
| 159 | done |
| 160 | } |
| 161 | |
| 162 | function create_overlay() { |
| David Garcia | 4237521 | 2020-04-27 19:07:49 +0200 | [diff] [blame] | 163 | sudo snap install jq |
| 164 | sudo apt install python3-pip -y |
| 165 | python3 -m pip install yq |
| 166 | PATH=$PATH:$HOME/.local/bin # make yq command available |
| Dominik Fleischmann | 5e4a751 | 2020-03-06 14:05:06 +0100 | [diff] [blame] | 167 | local HOME=/home/$USER |
| David Garcia | 4237521 | 2020-04-27 19:07:49 +0200 | [diff] [blame] | 168 | local vca_user=$(cat $HOME/.local/share/juju/accounts.yaml | yq --arg CONTROLLER_NAME $CONTROLLER_NAME '.controllers[$CONTROLLER_NAME].user') |
| 169 | local vca_password=$(cat $HOME/.local/share/juju/accounts.yaml | yq --arg CONTROLLER_NAME $CONTROLLER_NAME '.controllers[$CONTROLLER_NAME].password') |
| 170 | local vca_host=$(cat $HOME/.local/share/juju/controllers.yaml | yq --arg CONTROLLER_NAME $CONTROLLER_NAME '.controllers[$CONTROLLER_NAME]["api-endpoints"][0]' | cut -d ":" -f 1 | cut -d "\"" -f 2) |
| 171 | local vca_port=$(cat $HOME/.local/share/juju/controllers.yaml | yq --arg CONTROLLER_NAME $CONTROLLER_NAME '.controllers[$CONTROLLER_NAME]["api-endpoints"][0]' | cut -d ":" -f 2 | cut -d "\"" -f 1) |
| Dominik Fleischmann | 5e4a751 | 2020-03-06 14:05:06 +0100 | [diff] [blame] | 172 | local vca_pubkey=\"$(cat $HOME/.local/share/juju/ssh/juju_id_rsa.pub)\" |
| 173 | local vca_cloud="lxd-cloud" |
| 174 | # Get the VCA Certificate |
| David Garcia | 4237521 | 2020-04-27 19:07:49 +0200 | [diff] [blame] | 175 | local vca_cacert=$(cat $HOME/.local/share/juju/controllers.yaml | yq --arg CONTROLLER_NAME $CONTROLLER_NAME '.controllers[$CONTROLLER_NAME]["ca-cert"]' | base64 | tr -d \\n) |
| Dominik Fleischmann | 5e4a751 | 2020-03-06 14:05:06 +0100 | [diff] [blame] | 176 | |
| 177 | # Calculate the default route of this machine |
| Dominik Fleischmann | c57296f | 2020-06-09 11:45:08 +0200 | [diff] [blame] | 178 | local DEFAULT_IF=`ip route list match 0.0.0.0 | awk '{print $5}'` |
| Dominik Fleischmann | 5e4a751 | 2020-03-06 14:05:06 +0100 | [diff] [blame] | 179 | local vca_apiproxy=`ip -o -4 a |grep ${DEFAULT_IF}|awk '{split($4,a,"/"); print a[1]}'` |
| 180 | |
| 181 | # Generate a new overlay.yaml, overriding any existing one |
| David Garcia | 4237521 | 2020-04-27 19:07:49 +0200 | [diff] [blame] | 182 | cat << EOF > /tmp/vca-overlay.yaml |
| Dominik Fleischmann | 5e4a751 | 2020-03-06 14:05:06 +0100 | [diff] [blame] | 183 | applications: |
| 184 | lcm-k8s: |
| 185 | options: |
| 186 | vca_user: $vca_user |
| 187 | vca_password: $vca_password |
| 188 | vca_host: $vca_host |
| 189 | vca_port: $vca_port |
| 190 | vca_pubkey: $vca_pubkey |
| 191 | vca_cacert: $vca_cacert |
| 192 | vca_apiproxy: $vca_apiproxy |
| 193 | vca_cloud: $vca_cloud |
| 194 | mon-k8s: |
| 195 | options: |
| 196 | vca_user: $vca_user |
| 197 | vca_password: $vca_password |
| 198 | vca_host: $vca_host |
| 199 | vca_cacert: $vca_cacert |
| 200 | EOF |
| David Garcia | 4237521 | 2020-04-27 19:07:49 +0200 | [diff] [blame] | 201 | mv /tmp/vca-overlay.yaml ~/.osm/ |
| 202 | OSM_VCA_HOST=$vca_host |
| Dominik Fleischmann | 5e4a751 | 2020-03-06 14:05:06 +0100 | [diff] [blame] | 203 | } |
| 204 | |
| David Garcia | 69388c2 | 2020-05-07 12:14:19 +0200 | [diff] [blame] | 205 | function generate_images_overlay(){ |
| 206 | cat << EOF > /tmp/images-overlay.yaml |
| 207 | applications: |
| 208 | lcm-k8s: |
| 209 | options: |
| 210 | image: opensourcemano/lcm:$TAG |
| 211 | mon-k8s: |
| 212 | options: |
| 213 | image: opensourcemano/mon:$TAG |
| 214 | ro-k8s: |
| 215 | options: |
| 216 | image: opensourcemano/ro:$TAG |
| 217 | nbi-k8s: |
| 218 | options: |
| 219 | image: opensourcemano/nbi:$TAG |
| 220 | pol-k8s: |
| 221 | options: |
| 222 | image: opensourcemano/pol:$TAG |
| 223 | ui-k8s: |
| 224 | options: |
| 225 | image: opensourcemano/light-ui:$TAG |
| 226 | |
| 227 | EOF |
| 228 | mv /tmp/images-overlay.yaml $IMAGES_OVERLAY_FILE |
| 229 | } |
| 230 | |
| Dominik Fleischmann | 5e4a751 | 2020-03-06 14:05:06 +0100 | [diff] [blame] | 231 | function install_osmclient() { |
| 232 | sudo snap install osmclient |
| 233 | sudo snap alias osmclient.osm osm |
| 234 | } |
| 235 | |
| 236 | function create_iptables() { |
| 237 | check_install_iptables_persistent |
| 238 | |
| 239 | if ! sudo iptables -t nat -C PREROUTING -p tcp -m tcp -d $DEFAULT_IP --dport 17070 -j DNAT --to-destination $OSM_VCA_HOST; then |
| 240 | sudo iptables -t nat -A PREROUTING -p tcp -m tcp -d $DEFAULT_IP --dport 17070 -j DNAT --to-destination $OSM_VCA_HOST |
| 241 | sudo netfilter-persistent save |
| 242 | fi |
| 243 | } |
| 244 | |
| 245 | function check_install_iptables_persistent(){ |
| 246 | echo -e "\nChecking required packages: iptables-persistent" |
| 247 | if ! dpkg -l iptables-persistent &>/dev/null; then |
| 248 | echo -e " Not installed.\nInstalling iptables-persistent requires root privileges" |
| 249 | echo iptables-persistent iptables-persistent/autosave_v4 boolean true | sudo debconf-set-selections |
| 250 | echo iptables-persistent iptables-persistent/autosave_v6 boolean true | sudo debconf-set-selections |
| 251 | sudo apt-get -yq install iptables-persistent |
| 252 | fi |
| 253 | } |
| 254 | |
| 255 | function install_microstack() { |
| 256 | sudo snap install microstack --classic --beta |
| 257 | sudo microstack.init --auto |
| 258 | wget https://cloud-images.ubuntu.com/releases/16.04/release/ubuntu-16.04-server-cloudimg-amd64-disk1.img -P ~/.osm/ |
| 259 | microstack.openstack image create \ |
| David Garcia | 4237521 | 2020-04-27 19:07:49 +0200 | [diff] [blame] | 260 | --public \ |
| 261 | --disk-format qcow2 \ |
| 262 | --container-format bare \ |
| 263 | --file ~/.osm/ubuntu-16.04-server-cloudimg-amd64-disk1.img \ |
| 264 | ubuntu1604 |
| Dominik Fleischmann | 5e4a751 | 2020-03-06 14:05:06 +0100 | [diff] [blame] | 265 | ssh-keygen -t rsa -N "" -f ~/.ssh/microstack |
| 266 | microstack.openstack keypair create --public-key ~/.ssh/microstack.pub microstack |
| Dominik Fleischmann | c57296f | 2020-06-09 11:45:08 +0200 | [diff] [blame] | 267 | export OSM_HOSTNAME=`juju status --format json | jq -rc '.applications."nbi-k8s".address'` |
| Dominik Fleischmann | 5e4a751 | 2020-03-06 14:05:06 +0100 | [diff] [blame] | 268 | osm vim-create --name microstack-site \ |
| David Garcia | 4237521 | 2020-04-27 19:07:49 +0200 | [diff] [blame] | 269 | --user admin \ |
| 270 | --password keystone \ |
| 271 | --auth_url http://10.20.20.1:5000/v3 \ |
| 272 | --tenant admin \ |
| 273 | --account_type openstack \ |
| 274 | --config='{security_groups: default, |
| 275 | keypair: microstack, |
| 276 | project_name: admin, |
| 277 | user_domain_name: default, |
| 278 | region_name: microstack, |
| 279 | insecure: True, |
| 280 | availability_zone: nova, |
| 281 | version: 3}' |
| Dominik Fleischmann | 5e4a751 | 2020-03-06 14:05:06 +0100 | [diff] [blame] | 282 | } |
| 283 | |
| Dominik Fleischmann | c57296f | 2020-06-09 11:45:08 +0200 | [diff] [blame] | 284 | DEFAULT_IF=`ip route list match 0.0.0.0 | awk '{print $5}'` |
| Dominik Fleischmann | 5e4a751 | 2020-03-06 14:05:06 +0100 | [diff] [blame] | 285 | DEFAULT_IP=`ip -o -4 a |grep ${DEFAULT_IF}|awk '{split($4,a,"/"); print a[1]}'` |
| 286 | |
| 287 | check_arguments $@ |
| David Garcia | 4237521 | 2020-04-27 19:07:49 +0200 | [diff] [blame] | 288 | mkdir -p ~/.osm |
| Dominik Fleischmann | 5e4a751 | 2020-03-06 14:05:06 +0100 | [diff] [blame] | 289 | install_snaps |
| 290 | bootstrap_k8s_lxd |
| 291 | deploy_charmed_osm |
| David Garcia | 4237521 | 2020-04-27 19:07:49 +0200 | [diff] [blame] | 292 | [ ! -v CONTROLLER ] && create_iptables |
| Dominik Fleischmann | 5e4a751 | 2020-03-06 14:05:06 +0100 | [diff] [blame] | 293 | install_osmclient |
| David Garcia | 4237521 | 2020-04-27 19:07:49 +0200 | [diff] [blame] | 294 | if [ -v MICROSTACK ]; then |
| Dominik Fleischmann | 5e4a751 | 2020-03-06 14:05:06 +0100 | [diff] [blame] | 295 | install_microstack |
| 296 | fi |