Skip to content

Commit

Permalink
remove hardcoding of /opt/stack
Browse files Browse the repository at this point in the history
  • Loading branch information
noelmcloughlin committed Dec 1, 2018
1 parent 1ff8886 commit de81240
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 de81240

Please sign in to comment.