Hi,
Is it possible to somehow combine a custom cloud-init with an auto generated one ?
I thought that maybe if I do not set values that are autogenerated in my custom file, I will get them from ones I set in GUI. For example in my cicustom file for user-data I set some puppet and apt config
but I also want host name from GUI
Unfortunately, it doesn't combine these. When I set custom file, I do not get any values from auto generated part. Even if I don't set them in cicustom. I get default ones, e.g hostname is ubuntu. Not the name I set for this VM in a first place.
If it was possible, I would add this custom one config to a Template VM, and every time I cloned it, I would get puppet config from it and a hostname I specified during cloning.
Is it possible to somehow combine a custom cloud-init with an auto generated one ?
I thought that maybe if I do not set values that are autogenerated in my custom file, I will get them from ones I set in GUI. For example in my cicustom file for user-data I set some puppet and apt config
#cloud-config
apt:
sources:
puppet6:
keyid: "EF8D349F"
source: "deb http://apt.puppetlabs.com $RELEASE puppet6"
puppet:
install: true
version: "6.10.0-1bionic"
conf_file: "/etc/puppetlabs/puppet/puppet.conf"
ssl_dir: "/var/lib/puppet/ssl"
package_name: "puppet-agent"
conf:
agent:
server: "***-foreman01-**"
certname: "%f"
ca_cert: |
-------BEGIN CERTIFICATE-------
MIIFZTCCA02g..........
but I also want host name from GUI
hostname: my-hostname
manage_etc_hosts: true
fqdn: my-hostname-fqdn
Unfortunately, it doesn't combine these. When I set custom file, I do not get any values from auto generated part. Even if I don't set them in cicustom. I get default ones, e.g hostname is ubuntu. Not the name I set for this VM in a first place.
If it was possible, I would add this custom one config to a Template VM, and every time I cloned it, I would get puppet config from it and a hostname I specified during cloning.