At this moment is no possible to deploy anymore on amazon after upgrade
katello from 2.3 to 2.4 mean now i'm running on Foreman 1.10.1 this is my
setup
Main Server
Katello 2.4
Foreman 1.10.1
Capsule server
Katello 2.4
Foreman 1.10.1
i using the following user_data
%#
kind: user_data
name: Katello Kickstart default user data
oses:
-
CentOS 6
-
CentOS 7
-
Fedora 19
-
Fedora 20
-%>
#cloud-config
hostname: <%= @host.shortname %>
fqdn: <%= @host %>
manage_etc_hosts: true
<%# Allow user to specify additional SSH key as host paramter -%>
<% if @host.params['sshkey'] -%>
ssh_authorized_keys:- <%= @host.params['sshkey'] %>
<% end -%>
write_files:
- <%= @host.params['sshkey'] %>
-
path: /tmp/foreman-userdata.sh
permissions: '0755'
content: |
#!/bin/bash
<%= indent 4 do
snippet 'subscription_manager_registration'
end %>
<% if @host.respond_to?(:realm) && @host.otp && @host.realm &&
@host.realm.realm_type == "FreeIPA" -%>
<%= indent 4 do
snippet 'freeipa_register'
end %>
<% end -%>update all the base packages from the updates repository
yum -t -y -e 0 update
<%safemode renderer does not support unary negation
pm_set = @host.puppetmaster.empty? ? false : true
puppet_enabled = pm_set || @host.params['force-puppet']
salt_enabled = @host.params['salt_master'] ? true : false
%>
<% if salt_enabled %>
yum -t -y -e 0 install salt-minion
cat > /etc/salt/minion << EOF
<%= indent 4 do
snippet 'saltstack_minion'
end %>
EOFSetup salt-minion to run on system reboot
/sbin/chkconfig --level 345 salt-minion on
Running salt-call to trigger key signing
salt-call --no-color --grains >/dev/null
<% end -%>
<% if puppet_enabled %>
yum install -y puppet
cat > /etc/puppet/puppet.conf << EOF
<%= indent 4 do
snippet 'puppet.conf'
end %>
EOFSetup puppet to run on system reboot
/sbin/chkconfig --level 345 puppet on
/usr/bin/puppet agent --config /etc/puppet/puppet.conf --onetime --tags
no_such_tag <%= @host.puppetmaster.blank? ? '' : "–server
#{@host.puppetmaster}" %> --no-daemonize
/sbin/service puppet start
<% end -%>
phone_home:
url: <%= foreman_url('built') %>
post: []
tries: 10
runcmd: -
[ cloud-init-per, once, foreman-userdata, /tmp/foreman-userdata.sh ]
output: {all: '| tee -a /root/install.userdata.log'}
When provisioning i can see on the instance the user_data and is correctly
translate to hostname and puppet servers eveything
but for some reason is no excuted as per runcmd said i can't see any
install_userdata,log on /root
is any bug reported about this into foreman 1.10.1 or katello 2.4?
need some help to resolve this issue asap or if someone can point me where
i can looking to debug this issues, i really appreciated any help