Skip to content

Commit

Permalink
- Declare the full path to the install-fixtures.sh script for wordpress
Browse files Browse the repository at this point in the history
  • Loading branch information
boosh committed Sep 15, 2019
1 parent d6f432c commit 4cf1737
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion incubator/wordpress/sugarkube.yaml
Expand Up @@ -7,6 +7,7 @@ vars:
main_kapp_dir: wordpress
dns_record_name: "{{ .kapp.id }}"
ingress_class: nginx
script_path: "{{ .kapp.cacheRoot }}/{{ .kapp.vars.main_kapp_dir }}/install-fixtures.sh"
# db_host: # set all these in the manifest
# db_user:
# db_password:
Expand Down Expand Up @@ -42,7 +43,7 @@ run_units:
working_dir: "{{ .kapp.cacheRoot }}/{{ .kapp.vars.main_kapp_dir }}" # directory to use as the working directory
apply_install:
- name: install fixtures
command: ./install-fixtures.sh
command: "{{ .kapp.vars.script_path }}"
env_vars:
KUBECONFIG: "{{ .kapp.vars.kubeconfig }}"
KUBE_CONTEXT: "{{ .kapp.vars.kube_context }}"
Expand All @@ -53,3 +54,5 @@ run_units:
PROVIDER: "{{ .stack.provider }}"
conditions:
- "{{ eq .stack.provider \"local\" }}" # only run when using the local provider
binaries:
- kubectl

0 comments on commit 4cf1737

Please sign in to comment.