mkdir ~/joid_config/ || true
mkdir ~/.juju/ || true
-sudo mkdir -p ~maas || true
-sudo chown maas:maas ~maas
-if [ ! -e ~maas/.ssh/id_rsa ]; then
- sudo -u maas ssh-keygen -N '' -f ~maas/.ssh/id_rsa -y
+sudo mkdir -p ~/maas || true
+sudo chown maas:maas ~/maas
+if [ ! -e ~/maas/.ssh/id_rsa ]; then
+ sudo -u maas ssh-keygen -N '' -f ~/maas/.ssh/id_rsa -y
fi
# Ensure virsh can connect without ssh auth
-sudo cat ~maas/.ssh/id_rsa.pub >> $HOME/.ssh/authorized_keys
+sudo cat ~/maas/.ssh/id_rsa.pub >> $HOME/.ssh/authorized_keys
sudo cat $HOME/.ssh/id_rsa.pub >> $HOME/.ssh/authorized_keys
#
maas $PROFILE tags create name='storage'
}
-enablesubnetand dhcp(){
+enablesubnetanddhcp(){
SUBNET_PREFIX="192.168.122"
SUBNET_CIDR="($SUBNET_PREFIX).0/24"
maas $PROFILE subnet update $SUBNET_CIDR gateway_ip=$MY_GATEWAY
maas $PROFILE subnet update $SUBNET_CIDR dns_servers=$MY_NAMESERVER
-
}
## derived from https://gist.github.com/epiloque/8cf512c6d64641bde388
# split EXTERNAL_NETWORK=first ip;last ip; gateway;network
+ maas maas spaces create internal "Using for pxe network within the lab"
+
if [ "$datanet" != "''" ]; then
EXTNET=(${enableiflist//,/ })
i="0"
enableautomode ${EXTNET[i]} AUTO $datanet || true
i=$[$i+1]
done
+ maas maas spaces create admin "Using for admin network within the lab"
+
fi
if [ "$stornet" != "''" ]; then
EXTNET=(${enableiflist//,/ })
enableautomode ${EXTNET[i]} AUTO $pubnet || true
i=$[$i+1]
done
+ maas maas spaces create public "Using for public network within the lab"
fi
fi
aodh:
charm: "./{{ ubuntu.release }}/aodh"
num_units: 1
+ bindings:
+ internal: internal
+{% if opnfv.spaces_dict.data is defined %}
+ admin: admin
+{% else %}
+ admin: internal
+{% endif %}
+{% if opnfv.spaces_dict.public is defined %}
+ public: public
+{% else %}
+ public: internal
+{% endif %}
options:
openstack-origin: "cloud:{{ ubuntu.release }}-{{ os.release }}"
to:
ceilometer:
charm: "./{{ ubuntu.release }}/ceilometer"
num_units: {{ unit_qty() }}
+ bindings:
+ internal: internal
+{% if opnfv.spaces_dict.data is defined %}
+ admin: admin
+{% else %}
+ admin: internal
+{% endif %}
+{% if opnfv.spaces_dict.public is defined %}
+ public: public
+{% else %}
+ public: internal
+{% endif %}
options:
openstack-origin: "cloud:{{ ubuntu.release }}-{{ os.release }}"
region: {{ os.region }}
ceph-radosgw:
charm: "./{{ ubuntu.release }}/ceph-radosgw"
num_units: {{ unit_qty() if os.beta.hacluster_ceph_radosgw else 1 }}
+ bindings:
+ internal: internal
+{% if opnfv.spaces_dict.data is defined %}
+ admin: admin
+{% else %}
+ admin: internal
+{% endif %}
+{% if opnfv.spaces_dict.public is defined %}
+ public: public
+{% else %}
+ public: internal
+{% endif %}
options:
region: {{ os.region }}
use-embedded-webserver: true
num_units: 1
{% else %}
num_units: {{ unit_qty() }}
+{% endif %}
+ bindings:
+ internal: internal
+{% if opnfv.spaces_dict.data is defined %}
+ admin: admin
+{% else %}
+ admin: internal
+{% endif %}
+{% if opnfv.spaces_dict.public is defined %}
+ public: public
+{% else %}
+ public: internal
{% endif %}
options:
openstack-origin: "cloud:{{ ubuntu.release }}-{{ os.release }}"
congress:
charm: "./{{ ubuntu.release }}/congress"
num_units: 1
+ bindings:
+ internal: internal
+{% if opnfv.spaces_dict.data is defined %}
+ admin: admin
+{% else %}
+ admin: internal
+{% endif %}
+{% if opnfv.spaces_dict.public is defined %}
+ public: public
+{% else %}
+ public: internal
+{% endif %}
options:
region: {{ os.region }}
{% if ubuntu.release == 'trusty' %}
glance:
charm: "./{{ ubuntu.release }}/glance"
num_units: {{ unit_qty() }}
+ bindings:
+ internal: internal
+{% if opnfv.spaces_dict.data is defined %}
+ admin: admin
+{% else %}
+ admin: internal
+{% endif %}
+{% if opnfv.spaces_dict.public is defined %}
+ public: public
+{% else %}
+ public: internal
+{% endif %}
options:
openstack-origin: "cloud:{{ ubuntu.release }}-{{ os.release }}"
region: {{ os.region }}
heat:
charm: "./{{ ubuntu.release }}/heat"
num_units: 1
+ bindings:
+ internal: internal
+{% if opnfv.spaces_dict.data is defined %}
+ admin: admin
+{% else %}
+ admin: internal
+{% endif %}
+{% if opnfv.spaces_dict.public is defined %}
+ public: public
+{% else %}
+ public: internal
+{% endif %}
options:
openstack-origin: "cloud:{{ ubuntu.release }}-{{ os.release }}"
region: {{ os.region }}
keystone:
charm: "./{{ ubuntu.release }}/keystone"
num_units: {{ unit_qty() }}
+ bindings:
+ internal: internal
+{% if opnfv.spaces_dict.data is defined %}
+ admin: admin
+{% else %}
+ admin: internal
+{% endif %}
+{% if opnfv.spaces_dict.public is defined %}
+ public: public
+{% else %}
+ public: internal
+{% endif %}
options:
openstack-origin: "cloud:{{ ubuntu.release }}-{{ os.release }}"
region: {{ os.region }}
admin-role: {{ os.admin.role }}
keystone-admin-role: {{ os.admin.role }}
+ preferred-api-version: 3
{% if os.network.ipv6 %}
prefer-ipv6: {{ os.network.ipv6 }}
{% endif %}
neutron-api:
charm: "./{{ ubuntu.release }}/neutron-api"
num_units: {{ unit_qty() }}
+ bindings:
+ internal: internal
+{% if opnfv.spaces_dict.data is defined %}
+ admin: admin
+{% else %}
+ admin: internal
+{% endif %}
+{% if opnfv.spaces_dict.public is defined %}
+ public: public
+{% else %}
+ public: internal
+{% endif %}
options:
openstack-origin: "cloud:{{ ubuntu.release }}-{{ os.release }}"
region: {{ os.region }}
neutron-gateway:
charm: "./{{ ubuntu.release }}/neutron-gateway"
num_units: 1
+ bindings:
+ internal: internal
+{% if opnfv.spaces_dict.data is defined %}
+ admin: admin
+{% else %}
+ admin: internal
+{% endif %}
+{% if opnfv.spaces_dict.public is defined %}
+ public: public
+{% else %}
+ public: internal
+{% endif %}
options:
openstack-origin: "cloud:{{ ubuntu.release }}-{{ os.release }}"
{% if os.api.worker_multiplier %}
nova-cloud-controller:
charm: "./{{ ubuntu.release }}/nova-cloud-controller"
num_units: {{ unit_qty() }}
+ bindings:
+ internal: internal
+{% if opnfv.spaces_dict.data is defined %}
+ admin: admin
+{% else %}
+ admin: internal
+{% endif %}
+{% if opnfv.spaces_dict.public is defined %}
+ public: public
+{% else %}
+ public: internal
+{% endif %}
options:
openstack-origin: "cloud:{{ ubuntu.release }}-{{ os.release }}"
region: {{ os.region }}