Skip to content

CrispyBaguette/docker-swarm-config-ansible

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-swarm-config-ansible

Automating Docker Swarm configs with Ansible

The contents of this repository demonstrate the principles described in this blog article.

Running vagrant up will provision a debian 11 VM running a Docker Swarm, by running the init.yaml playbook.

Running the rotate_config.yaml playbook will ensure that a service is running on the Docker Swarm, and generate a new config. The contents of the new config will be accessible on port 8080 (here). Details about the config are accessible through vagrant ssh and docker config ls.

ansible-playbook --private-key=.vagrant/machines/default/virtualbox/private_key -u vagrant -i .vagrant/provisioners/ansible/inventory/vagrant_ansible_inventory

Requirements

  • Ansible
  • Vagrant

About

Automating Docker Swarm configs with Ansible

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages