Skip to content

Commit

Permalink
Merge pull request #18 from noelmcloughlin/fix2
Browse files Browse the repository at this point in the history
Remove /opt/stack hardcoding - add stackrc
  • Loading branch information
noelmcloughlin authored Dec 1, 2018
2 parents 1ff8886 + de81240 commit 67336dc
Show file tree
Hide file tree
Showing 4 changed files with 977 additions and 7 deletions.
4 changes: 2 additions & 2 deletions devstack/clean.sls
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ openstack-devstack unstack:
- HOST_IP: {{ grains.ipv4[-1] if not devstack.local.host_ip else devstack.local.host_ip }}
- HOST_IPV6: {{ grains.ipv6[-1] if not devstack.local.host_ipv6 else devstack.local.host_ipv6 }}
- runas: {{ devstack.local.username }}
- onlyif: test -f {{ devstack.local.sudoers_file }} && getent passwd {{ devstack.local.username }}
- onlyif: test -f {{devstack.local.sudoers_file}} && getent passwd {{devstack.local.username}}
- require_in:
- file: openstack-devstack cleandown
- user: openstack-devstack ensure user and group absent
Expand All @@ -27,7 +27,7 @@ openstack-devstack clean:
- HOST_IP: {{ grains.ipv4[-1] if not devstack.local.host_ip else devstack.local.host_ip }}
- HOST_IPV6: {{ grains.ipv6[-1] if not devstack.local.host_ipv6 else devstack.local.host_ipv6 }}
- runas: {{ devstack.local.username }}
- onlyif: test -f {{ devstack.local.sudoers_file }} && getent passwd {{ devstack.local.username }}
- onlyif: test -f {{devstack.local.sudoers_file}} && getent passwd {{devstack.local.username}}
- require_in:
- file: openstack-devstack cleandown
- user: openstack-devstack ensure user and group absent
Expand Down
2 changes: 1 addition & 1 deletion devstack/files/local.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[[local|localrc]]
ENABLED_SERVICES={{ data.enabled_services or "" }}
DEST=${DEST:-{{ "/opt/stack" if not dir.dest else dir.dest }}}
DATA_DIR=${DATA_DIR:-"${DEST}/data"}
DATA_DIR=${DATA_DIR:-{{ '/opt/stack' if not dir.dest else dir.dest }}/data}

GIT_BASE=${GIT_BASE:-{{ "https://git.openstack.org" if not data.git_base else data.git_base }}}
GIT_BRANCH=${GIT_BRANCH:-{{ "master" if not data.git_branch else data.git_branch }}}
Expand Down
Loading

0 comments on commit 67336dc

Please sign in to comment.