Sha256: 3a0f46a74b1233000cfbca689f81c38748f79c878abab5bfc1084f3462574dca

Contents?: true

Size: 939 Bytes

Versions: 1

Compression:

Stored size: 939 Bytes

Contents

#cloud-config

bootcmd:
  - echo <%= options['hostname'] %> > /etc/hostname
  - hostname -F /etc/hostname

hostname: <%= options['hostname'] %>
fqdn: <%= options['hostname'] %>
manage_etc_hosts: true

package_upgrade: true
package_reboot_if_required: true

write_files:
<% if options['csr_attributes'] %>
  - content: |
      ---
      custom_attributes:
        1.2.840.113549.1.9.7: <%= options['csr_attributes'] %>
    path: /etc/puppetlab/puppet/csr_attributes.yaml
    permissions: 0600
<% end %>
<% options['facts'].each do |fact, value| %>
  - content: |
      ---
      <%= fact %>: <%= value %>
    path: /opt/puppetlabs/facter/facts.d/<%= fact %>.yaml
    permissions: '0644'
<% end %>
      
<%# runcmd: %>
<%#   - rpm -ivh https://yum.puppetlabs.com/puppetlabs-release-el-6.noarch.rpm %>
<%#   - yum -y install puppet-agent %>
<%#   - puppet agent -t --waitforcert 5  --server henson.uchicago.edu %>
<%#   - puppet agent -t %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
awstool-0.0.2 userdata/default.erb