Skip to content

Commit

Permalink
Assume jail type if not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
mekanix committed Aug 28, 2018
1 parent 701355a commit 75e5a1f
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 1 deletion.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ TEMPLATES = cbsd.conf.tpl \
ANSIBLE_TEMPLATES = ansible/inventory.local.tpl ansible/inventory.remote.tpl
ANSIBLE_GROUP_TEMPLATES = ansible/group_vars/all.tpl
MAKEFILES = ansible.mk \
common.mk \
bhyve-service.mk \
chef.mk \
jail-service.mk \
Expand Down
2 changes: 2 additions & 0 deletions mk/ansible.mk
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.include <${REGGAE_PATH}/mk/common.mk>

PROVISIONERS += ansible
ANSIBLE != sh -c "which ansible-3.6 || true"

Expand Down
2 changes: 2 additions & 0 deletions mk/chef.mk
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.include <${REGGAE_PATH}/mk/common.mk>

PROVISIONERS += chef

provision-chef:
Expand Down
1 change: 1 addition & 0 deletions mk/common.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
TYPE ?= jail
2 changes: 2 additions & 0 deletions mk/puppet.mk
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.include <${REGGAE_PATH}/mk/common.mk>

PROVISIONERS += puppet

provision-puppet:
Expand Down
2 changes: 2 additions & 0 deletions mk/salt.mk
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.include <${REGGAE_PATH}/mk/common.mk>

PROVISIONERS += salt

provision-salt:
Expand Down
3 changes: 2 additions & 1 deletion mk/service.mk
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.include <${REGGAE_PATH}/mk/common.mk>

.if exists(vars.mk)
.include <vars.mk>
.endif
Expand All @@ -9,7 +11,6 @@ UID ?= ${RUNNING_UID}
GID ?= ${RUNNING_GID}
DOMAIN != reggae get-config DOMAIN
CBSD_WORKDIR != sysrc -n cbsd_workdir
TYPE ?= jail
EXTRA_PACKAGES =

.for provisioner in ${PROVISIONERS}
Expand Down
2 changes: 2 additions & 0 deletions mk/shell.mk
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.include <${REGGAE_PATH}/mk/common.mk>

PROVISIONERS += shell

provision-shell:
Expand Down

0 comments on commit 75e5a1f

Please sign in to comment.