Ask Your Question
0

user_data aws puppet-labs heira configuration

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

anishnath gravatar image

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

vm-02:
    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"
    private_ip_address: 10.10.33.15
    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
0

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

lupin gravatar image

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

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

Stats

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

Seen: 78 times

Last updated: Oct 05 '15