Skip to content
This repository has been archived by the owner on Aug 20, 2019. It is now read-only.

Allow different base config profiles. #300

Merged
merged 1 commit into from
Aug 8, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion provisioning/ansible/playbook-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@
vars:
beet_base: "{{ lookup('env','BEET_BASE') | default('/var/beetbox',true) }}"
beet_user: "{{ lookup('env','BEET_USER') | default('vagrant',true) }}"
beet_profile: "{{ lookup('env','BEET_PROFILE') | default('beetbox',true) }}"
ansible_home: "{{ lookup('env','ANSIBLE_HOME') | default('/beetbox/provisioning/ansible',true) }}"
conf_dir: "{{ beet_base }}/.beetbox"
conf_files:
- beetbox.config.yml
- "profiles/{{ beet_profile }}.config.yml"
- project.config.yml
- host.config.yml
- config.yml
Expand Down
5 changes: 4 additions & 1 deletion provisioning/ansible/playbook-provision.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@
connection: local
become: yes

vars:
beet_profile: "{{ lookup('env','BEET_PROFILE') | default('beetbox',true) }}"

vars_files:
- config/beetbox.config.yml
- "config/profiles/{{ beet_profile }}.config.yml"
- config/project.config.yml
- config/host.config.yml
- config/config.yml
Expand Down
9 changes: 5 additions & 4 deletions provisioning/ansible/playbook-setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,17 @@
connection: local
become: yes

vars:
beet_profile: "{{ lookup('env','BEET_PROFILE') | default('beetbox',true) }}"
circleci: "{{ lookup('env','CIRCLECI') == 'true' }}"

vars_files:
- config/beetbox.config.yml
- "config/profiles/{{ beet_profile }}.config.yml"
- config/project.config.yml
- config/host.config.yml
- config/config.yml
- config/local.config.yml

vars:
circleci: "{{ lookup('env','CIRCLECI') == 'true' }}"

roles:
- { role: beetbox-circleci, when: "{{ circleci }}"}
- { role: beetbox-vagrant, when: "{{ lookup('env','VAGRANT_INIT') == 'true' }}"}
Expand Down
5 changes: 4 additions & 1 deletion provisioning/ansible/playbook-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@
connection: local
become: yes

vars:
beet_profile: "{{ lookup('env','BEET_PROFILE') | default('beetbox',true) }}"

vars_files:
- config/beetbox.config.yml
- "config/profiles/{{ beet_profile }}.config.yml"
- config/project.config.yml
- config/host.config.yml
- config/config.yml
Expand Down
9 changes: 5 additions & 4 deletions provisioning/ansible/playbook-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,17 @@
connection: local
become: yes

vars:
beet_profile: "{{ lookup('env','BEET_PROFILE') | default('beetbox',true) }}"
beet_update: no

vars_files:
- config/beetbox.config.yml
- "config/profiles/{{ beet_profile }}.config.yml"
- config/project.config.yml
- config/host.config.yml
- config/config.yml
- config/local.config.yml

vars:
beet_update: no

tasks:

- name: Create {{ beet_user }} user.
Expand Down