Ask Your Question

user_data aws puppet-labs heira configuration

asked 2015-10-04 11:42:52 -0600

anishnath gravatar image

I'm creating aws instnace using puppet-labs aws YAML imfrastructure example , the instance is created but #cloudconfig is not set,

    ensure: present
    region: us-west-2
    #availability_zone: us-west-2b
    subnet: w2c-subnet
    image_id: ami-5189a661
    instance_type: t2.micro
    key_name: west-trial
    user_data: " #cloud-config
                hostname: myhostname
                fqdn: myhostname.mydomainname"
    security_groups: vm-02-secgrp

Is this is the right way to pass the user_data ?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-10-05 03:29:37 -0600

lupin gravatar image

updated 2015-10-05 03:35:50 -0600

If you need to pass a multi-line value, do the following.

user_data: |
     hostname: myhostname
     fqdn: myhostname.mydomainnme
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2015-10-04 11:42:52 -0600

Seen: 88 times

Last updated: Oct 05 '15