ansible-playground  Check-in [caf00afc2b]

Welcome to the Demo of Configuration Management Automation

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Adding playground files to fossil
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | trunk
Files: files | file ages | folders
SHA1:caf00afc2bf4034d3d001f6207b805706fda52ec
User & Date: fulstacker 2016-04-05 10:32:08
Context
2016-04-05
10:32
Adding playground files to fossil Leaf check-in: caf00afc2b user: fulstacker tags: trunk
10:30
(no comment) check-in: daaf096b80 user: fulstacker tags: trunk
Changes

Added .tmuxinator.yml.



































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# ~/.tmuxinator/ansible_vagrant.yml

name: ansible_vagrant
root: ~/

# Optional tmux socket
# socket_name: foo

# Runs before everything. Use it to start daemons etc.
# pre: sudo /etc/rc.d/mysqld start

# Runs in each window and pane before window/pane specific commands. Useful for setting up interpreter versions.
# pre_window: rbenv shell 2.0.0-p247

# Pass command line options to tmux. Useful for specifying a different tmux.conf.
# tmux_options: -f ~/.tmux.mac.conf

# Change the command to call tmux.  This can be used by derivatives/wrappers like byobu.
# tmux_command: byobu

# Specifies (by name or index) which window will be selected on project startup. If not set, the first window is used.
# startup_window: logs
name: ansible_vagrant
project_root: .


windows:
  - vagrant:
      layout: main-vertical
      panes:
        - vagrant ssh master
        - vagrant ssh devops1
        - vagrant ssh devops2

Added Vagrantfile.

















































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Vagrant.configure("2") do |config|
  config.vm.define "master" do |master|
    master.vm.box = "hashicorp/precise64"
    master.vm.network "private_network", ip: "192.168.100.100"
    master.vm.hostname = "master"
    master.vm.provision "shell", path: "prepare.sh"
    master.vm.provision "shell", inline: "sudo apt-get -y install ansible"
    master.vm.provision "shell", inline: "sudo echo '[dev]' >> /etc/ansible/hosts"
    master.vm.provision "shell", inline: "sudo echo '192.168.100.101' >> /etc/ansible/hosts"
    master.vm.provision "shell", inline: "sudo echo '192.168.100.102' >> /etc/ansible/hosts"
  end

  devops_COUNT = 2

  (1..devops_COUNT).each do |devops_id|
    config.vm.define "devops#{devops_id}" do |devops|
      devops.vm.box = "hashicorp/precise64"
      devops.vm.network "private_network", ip: "192.168.100.#{devops_id + 100}"
      devops.vm.hostname = "devops#{devops_id}"
      devops.vm.provision "shell", path: "prepare.sh"
      devops.vm.provision "shell", inline: "sudo apt-get -y install ansible"
    end
  end
end

Added fossil.exe.

cannot compute difference between binary files

Added post.sh.







>
>
>
1
2
3
#!/bin/sh

sudo ufw allow ansible

Added prepare.sh.













>
>
>
>
>
>
1
2
3
4
5
6
#!/bin/sh

sudo apt-get -y update
sudo apt-get -y install software-properties-common tmux vim
sudo add-apt-repository -y ppa:ansible/ansible
sudo apt-get -y update