Changes between Version 24 and Version 25 of GENIExperimenter/Tutorials/AnsibleHelloGENI/Execute


Ignore:
Timestamp:
03/15/15 21:07:23 (5 years ago)
Author:
sedwards@bbn.com
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GENIExperimenter/Tutorials/AnsibleHelloGENI/Execute

    v24 v25  
    126126   }}}
    127127}}}
    128 
     128 a. Using the above Ad Hoc Ansible commands do the following:
     129    i. on both `client` and `server`, install `apache2` and `iperf`
     130    i. on the `server` node, place the `website/index.html` file in `/var/www`; do the same with the `website/graphics` files.
    129131
    130132
     
    143145               </td>
    144146               <td>
    145                     Ansible Ad Hoc commands easy map to commands used in an Ansible Playbook. 
     147                    Ansible Ad Hoc commands easily map to commands used in an Ansible Playbook. 
    146148               </td>
    147149        </tr>
     
    149151}}}
    150152
    151 
    152 On the local machine:
     153The `hello-client.yml` is:
    153154
    154155   {{{
    155156#!python
     157---
     158- name: Configure client
     159  hosts: client
     160  sudo: True
     161  tasks:
     162   - name: install apache2
     163     apt: name=apache2 update_cache=yes
     164   - name: install iperf
     165     apt: name=iperf update_cache=yes
     166   - name: copy scripts into /local with permissions 755
     167     synchronize: src=scripts dest=/local mode=755
     168    }}}
     169
     170Run the playbook with the following commands on the local machine:
     171
     172   {{{
     173#!python
     174ansible-playbook hello-client.yml -i inventory
    156175ansible-playbook hello-server.yml -i inventory
    157 ansible-playbook hello-client.yml -i inventory
    158176   }}}
    159177}}}
    160 
    161  a. Using the above Ansible modules:
    162     i. on both `client` and `server`, install `apache2` and `iperf`
    163     i. on the `server` node, place the `website/index.html` file in `/var/www`; do the same with the `website/graphics` files.
    164  a. Using the above Ansible modules, reproduce the steps in the HelloGENI install script.  As you find a command that works, carefully copy it into a text file and then into the Playbook. 
     178 a. Using the above Ansible modules, reproduce the steps in the HelloGENI install script for the `server` node.  As you find a command that works, carefully copy it into a text file and then into the Playbook. 
    165179
    166180== 6.  Analyze Experiment ==