summaryrefslogtreecommitdiffstats
path: root/juju
diff options
context:
space:
mode:
authorNarinder Gupta <narinder.gupta@canonical.com>2017-05-30 16:30:49 -0500
committerNarinder Gupta <narinder.gupta@canonical.com>2017-05-30 23:13:32 -0500
commit9e321798fa5422c102b9a8a7d3fef799b9745d65 (patch)
tree0c052749ca07e5b96cc149756c53b259222a52aa /juju
parentd2d7586c4959bbb4db265fd8aa41519b595856db (diff)
another bug fix.
Change-Id: I4aacad242b1c9cef56cfe0c1999c27fdce3dcc0a Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
Diffstat (limited to 'juju')
-rwxr-xr-xjuju/configure-juju-on-openstack2
-rwxr-xr-xjuju/joid-configure-openstack6
2 files changed, 5 insertions, 3 deletions
diff --git a/juju/configure-juju-on-openstack b/juju/configure-juju-on-openstack
index ad357ce7..c83a45a4 100755
--- a/juju/configure-juju-on-openstack
+++ b/juju/configure-juju-on-openstack
@@ -116,6 +116,8 @@ echo "credentials:
password: $OS_PASSWORD
tenant-name: $OS_TENANT_NAME
username: $OS_USERNAME
+ user-domain-name: $OS_USER_DOMAIN_NAME
+ project-domain-name: $OS_PROJECT_DOMAIN_NAME
" > os-creds.yaml
juju add-credential openstack -f os-creds.yaml --replace
diff --git a/juju/joid-configure-openstack b/juju/joid-configure-openstack
index 5887ac73..52347b4a 100755
--- a/juju/joid-configure-openstack
+++ b/juju/joid-configure-openstack
@@ -57,9 +57,9 @@ echo "Configuring security groups for access to ICMP, SSH and RDP by default"
PROJECT_ID=`openstack project list -c ID -f value --domain admin_domain`
#Configure the default security group to allow ICMP and SSH
-sicmpecuritygroup=`openstack security group list --project "$PROJECT_ID" -c ID -f value`
-openstack security group rule list $securitygroup | grep "icmp" > /dev/null 2>&1 || openstack security group rule create --remote-group $securitygroup --ingress --protocol icmp --prefix "0.0.0.0/0"$securitygroup
-openstack security group rule list $securitygroup | grep "22/tcp" > /dev/null 2>&1 || openstack security group rule create --remote-group $securitygroup --ingress --protocol tcp --dst-port 22:22 --prefix "0.0.0.0/0" $securitygroup
+SEC_GRP=`openstack security group list --project "$PROJECT_ID" -c ID -f value`
+openstack security group rule list $SEC_GRP | grep "icmp" > /dev/null 2>&1 || openstack security group rule create --remote-group $SEC_GRP --ingress --protocol icmp --prefix "0.0.0.0/0" $SEC_GRP
+openstack security group rule list $SEC_GRP | grep "22/tcp" > /dev/null 2>&1 || openstack security group rule create --remote-group $SEC_GRP --ingress --protocol tcp --dst-port 22:22 --prefix "0.0.0.0/0" $SEC_GRP
echo "Uploading default SSH key"