Skip to content

Instantly share code, notes, and snippets.

@devsecfranklin
Last active January 7, 2018 01:27
Show Gist options
  • Save devsecfranklin/fa5da83b63063dd2f9e36ca65e097050 to your computer and use it in GitHub Desktop.
Save devsecfranklin/fa5da83b63063dd2f9e36ca65e097050 to your computer and use it in GitHub Desktop.
* Create a new file in iac_workshop/puppetlabs/code/environments/production/modules/profile/templates
* Let's call it issue.erb
```
<%# Non-printing tag ↓ -%>
<% if @keys_enable -%>
<%# Expression-printing tag ↓ -%>
keys <%= @keys_file %>
<% unless @keys_trusted.empty? -%>
trustedkey <%= @keys_trusted.join(' ') %>
<% end -%>
<% if @keys_requestkey != '' -%>
requestkey <%= @keys_requestkey %>
<% end -%>
<% if @keys_controlkey != '' -%>
controlkey <%= @keys_controlkey %>
<% end -%>
<% end -%>
```
* We need to add something to a new or existing maniftest to gather the variables and apply them /install the template.
```
file {'':
}
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment