#cloud-config

# from 1 files
# cloud_config.txt

---
chpasswd:
    expire: false
disable_ec2_metadata: true
disable_root: false
final_message: YAY! The system is finally up, after $UPTIME seconds
fqdn: node-2.test.domain.local
growpart:
    mode: false
hostname: node-2.test.domain.local
locale: en_US.UTF-8
mcollective:
    conf:
        collectives: mcollective
        connector: rabbitmq
        daemonize: 0
        direct_addressing: 1
        factsource: yaml
        libdir: /usr/share/mcollective/plugins
        logfile: /var/log/mcollective.log
        loglevel: debug
        main_collective: mcollective
        plugin.psk: unset
        plugin.rabbitmq.heartbeat_interval: 30
        plugin.rabbitmq.pool.1.host: 10.109.0.2
        plugin.rabbitmq.pool.1.password: EwRDQjKW
        plugin.rabbitmq.pool.1.port: 61613
        plugin.rabbitmq.pool.1.user: mcollective
        plugin.rabbitmq.pool.size: 1
        plugin.rabbitmq.vhost: mcollective
        plugin.yaml: /etc/mcollective/facts.yaml
        securityprovider: psk
        ttl: 4294957
password: r00tme
puppet:
    conf:
        agent:
            classfile: $vardir/classes.txt
            configtimeout: 600
            localconfig: $vardir/localconfig
            report: false
            server: nailgun.test.domain.local
        main:
            logdir: /var/log/puppet
            pluginsync: true
            postrun_command: /bin/true
            prerun_command: /bin/true
            rundir: /var/run/puppet
            ssldir: $vardir/ssl
resize_rootfs: false
rsyslog:
-   content: '$template LogToMaster, "<%PRI%>1 %$NOW%T%TIMESTAMP:8:$%Z %HOSTNAME%
        %APP-NAME% %PROCID% %MSGID% -%msg%\n"

        *.* @10.109.0.2;LogToMaster

        '
    filename: 10-log2master.conf
runcmd:
- /usr/sbin/invoke-rc.d puppet stop
- /usr/sbin/update-rc.d -f puppet remove
- rm -f /etc/init/mcollective.override
- service mcollective restart
- iptables -t filter -F INPUT
- iptables -t filter -F FORWARD
ssh_authorized_keys:
- ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAobZBIk8BflxLOgxI6mfDspZjkhnxDmVnN+pqRwmLu8yBvtW0MxNyt2Umpc7dPtll6SuQGK7zy0XtFahdOdgJPs5Q/89Ol4rgi0pFY9YbcBkBRcJJjQazg2L1vIVY0RKMOud31KfgWiuNCV6NZ5uAcbHQIPLKGkdwJWBmv5tba08WGSgNbJTjSfifAGhRnWtUyk0AUTIeOtKYYVjGjnRPG6a8qa4aMZ/htObokBAtjoREpiHChC5S882fjid45r4p8V0NY5OLnO8fEkuMNaotYcfhLd9ANSRcT4wFW1u9cHxLxI5ZahklfdQgEf1/MdqFfc0ULl6Kc1gDxQTfwKHo0w==
    root@nailgun.test.domain.local
- ''
ssh_pwauth: false
timezone: Etc/UTC
user: root
write_files:
-   content: '---

        url: http://10.109.0.2:8000/api

        '
    path: /etc/nailgun-agent/config.yaml
-   content: target
    path: /etc/nailgun_systemtype
...
