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:
2019-03-12 15:09:52 +01:00
parent 5522463e89
commit 3185f8a46c
9 changed files with 173 additions and 140 deletions

View File

@ -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