diff --git a/index.html b/index.html index ed5fb9f..29dde79 100644 --- a/index.html +++ b/index.html @@ -1035,11 +1035,52 @@ Apply complete! Resources: 2 added, 0 changed, 0 destroyed.
  • Plain YAML — tasks run top to bottom against the "webservers" group.
  • become: true = run as root (sudo).
  • Handlers are the neat bit: restart nginx only if the config actually changed.
  • +
  • The .j2 in nginx.conf.j2 = Jinja2, Ansible's templating engine. The template module renders it on the control node — {{ variables }}, {% if %}/{% for %} logic, filters like {{ value | default(...) }} — then ships the result to dest.
  • +
  • That's how one template serves many hosts: same file, per-host values from inventory/group_vars.
  • - + +
    +

    Who runs where? The inventory.

    + +
    +
    +

    # inventory.yml — static

    +
    
    +webservers:
    +  hosts:
    +    web-01:
    +      ansible_host: 10.0.0.11
    +    web-02:
    +      ansible_host: 10.0.0.12
    +        
    +
    +
    +

    # openstack.yml — dynamic

    +
    
    +plugin: openstack.cloud.openstack
    +expand_hostvars: true
    +groups:
    +  webservers: "'web' in name"
    +        
    +
    +
    + +
    + +

    $ terminal

    
    @@ -1071,7 +1112,7 @@ finistdevs-web : ok=4  changed=3  unreachable=0  failed=0  skipped=0
         
       
    - +

    Not just configuration. Operations.

    - +

    The community does the heavy lifting.

    - +

    Ansible at scale: open-source vs enterprise.

    - +

    Puppet

    Your servers are configured. Now keep them that way.

    @@ -1137,7 +1178,7 @@ finistdevs-web : ok=4 changed=3 unreachable=0 failed=0 skipped=0
    - +

    What is Puppet?

    - +

    Pull, not push. Agents, not SSH.

    - +

    # manifests/webserver.pp

    
    @@ -1235,7 +1276,7 @@ class webserver {
         
       
    - +

    $ terminal

    
    @@ -1262,7 +1303,7 @@ Notice: Applied catalog in 12.34 seconds
         
       
    - +

    Someone SSH'd in and changed something.

      @@ -1310,7 +1351,7 @@ Notice: Applied catalog in 12.34 seconds
    - +

    Puppet: large fleets, zero drift.

      @@ -1328,7 +1369,7 @@ Notice: Applied catalog in 12.34 seconds
    - +

    The ecosystem outlives the company.

      @@ -1345,7 +1386,7 @@ Notice: Applied catalog in 12.34 seconds
    - +

    They're not competing. They're complementary.

    Each solves a different layer of the same problem.

    @@ -1384,7 +1425,7 @@ Notice: Applied catalog in 12.34 seconds
    - +

    A common production setup:

      @@ -1401,7 +1442,7 @@ Notice: Applied catalog in 12.34 seconds
    - +

    Questions?

    Thank you!