dev/provisioning/modules/puppi/templates/info/readme.erb
changeset 28 b0b56e0f8c7f
equal deleted inserted replaced
27:a2342f26c9de 28:b0b56e0f8c7f
       
     1 #!/bin/bash
       
     2 # <%= @description %>
       
     3 # Script generated by Puppet. It's executed when you run:
       
     4 # puppi info <%= @name %>
       
     5 #
       
     6 # Sources common header for Puppi scripts
       
     7 . <%= scope.lookupvar('puppi::params::scriptsdir') %>/header || exit 10
       
     8 
       
     9 # Show ReadMe file
       
    10 echo_title "$HOSTNAME - <%= @name %>: ReadMe"
       
    11 show_command "cat <%= scope.lookupvar('puppi::params::readmedir') %>/<%= @name %>"
       
    12 
       
    13 <% if @autoreadme == "yes" %>
       
    14 echo_title "$HOSTNAME - <%= @name %>: ReadMe Custom"
       
    15 show_command "cat <%= scope.lookupvar('puppi::params::readmedir') %>/<%= @name %>-custom"
       
    16 <% end %>
       
    17 
       
    18 <% if @run != "" %>
       
    19 echo_title "$HOSTNAME - <%= @name %>: Extra info"
       
    20 <% @run.each do |cmd| %>show_command "<%= cmd %>"
       
    21 <% end %>
       
    22 <% end %>