Regarding advise to use 'puppet apply -e'

Some odd issue with processing resource $title by erb template

I call

puppet apply -e "ec2_instance {"szemlyanoy-test-5": ensure => present, 
region => eu-west-1, image_id => ami-12249661, instance_type => 
'm3.medium', key_name => 'CLI_Deploy', security_groups => ['Allow all'], 
subnet =>  'ec2_generic', user_data => 
template('files/aws_ec2_init.sh.erb'), block_devices => [{'device_name' => 
'/dev/sda1', 'delete_on_termination' => 'true', volume_size => 15}]}"

where in template('files/aws_ec2_init.sh.erb')  I use few commands like

#!/bin/bash
hostnamectl set-hostname <%= @title %>.somedomain


and it applies hostname 'main.somedomain'

So cannot get from where this $title evaluates to 'main' ?


Thanks in advance

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/ec630430-7dde-40c2-b077-82090b8b0a19%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to