Basic protoype
- Set/get Creole values by their names - Handles multi values and master/slaves - Basic playbook with module instanciation
This commit is contained in:
37
Makefile
37
Makefile
@ -1,29 +1,10 @@
|
||||
eole-2.6.2:
|
||||
docker build \
|
||||
--build-arg HTTP_PROXY=$(HTTP_PROXY) \
|
||||
--build-arg HTTPS_PROXY=$(HTTPS_PROXY) \
|
||||
--build-arg http_proxy=$(http_proxy) \
|
||||
--build-arg https_proxy=$(https_proxy) \
|
||||
-t eolebase-2.6.2:latest \
|
||||
./misc/eole-2.6.2
|
||||
DESTDIR := ./
|
||||
install:
|
||||
install -d $(DESTDIR)usr/share/ansible/plugins/modules
|
||||
install src/eole_config.py $(DESTDIR)usr/share/ansible/plugins/modules
|
||||
|
||||
link-dev:
|
||||
mkdir -p "$(HOME)/.ansible/plugins/modules"
|
||||
ln -s "$(PWD)/src" "$(HOME)/.ansible/plugins/modules/eole"
|
||||
|
||||
ansible-eole: eole-2.6.2
|
||||
docker build \
|
||||
--build-arg HTTP_PROXY=$(HTTP_PROXY) \
|
||||
--build-arg HTTPS_PROXY=$(HTTPS_PROXY) \
|
||||
--build-arg http_proxy=$(http_proxy) \
|
||||
--build-arg https_proxy=$(https_proxy) \
|
||||
-t ansible-eole:latest \
|
||||
./misc/ansible-eole
|
||||
|
||||
dev-env:
|
||||
docker run \
|
||||
-it \
|
||||
--rm \
|
||||
-v "$(PWD)/src/eole_config.py:/ansible/lib/ansible/modules/system/eole_config.py:ro" \
|
||||
-v "$(PWD)/testdata:/testdata:ro" \
|
||||
--network host \
|
||||
--name ansible-creole-dev-env \
|
||||
ansible-eole
|
||||
|
||||
.PHONY: eole-2.6.2 ansible-eole
|
||||
.PHONY: link-locally install
|
Reference in New Issue
Block a user