Skip to content

Playground to Ansible using Vagrant or AWS

Notifications You must be signed in to change notification settings

abacao/ansible-playground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

"# ansible-playground"

Test Kitchen

Using Vagrant

  1. git clone https://github.com/abacao/ansible-playground.git
  2. cd ansible-playground/vagrant
  3. vagrant up
  4. vagrant ssh

Now you can test one of the following commands:

bundle exec kitchen list
bundle exec kitchen create ubuntu-14
bundle exec kitchen login ubuntu-14
bundle exec kitchen verify ubuntu-14
bundle exec kitchen converge ubuntu-14
bundle exec kitchen destroy ubuntu-14

Using AWS / Terraform

  1. Install Terraform
  2. Create a terraform.tfvars with
key_name = "abacao"
public_key_path = "~/.ssh/id_rsa.pub"
aws_accesskey = "ASAAAAAAAAAAAAAAAAAAA"
aws_secretkey  = "dummietokendummietokendummietokendummietoken"
aws_region = "eu-west-2"
  1. ssh ubuntu@IP
  2. git clone https://github.com/abacao/ansible-playground.git
  3. cd ansible-playground/ansible
  4. ansible-playbook install_kitchen.yml

Now you can test one of the following commands:

bundle exec kitchen list
bundle exec kitchen create ubuntu-14
bundle exec kitchen login ubuntu-14
bundle exec kitchen verify ubuntu-14
bundle exec kitchen converge ubuntu-14
bundle exec kitchen destroy ubuntu-14

Releases

No releases published

Packages

No packages published