~ubuntu-branches/debian/stretch/fuel-agent/stretch

« back to all changes in this revision

Viewing changes to cloud-init-templates/cloud_config_fuel_7.0_ubuntu.jinja2

  • Committer: Package Import Robot
  • Author(s): Thomas Goirand
  • Date: 2016-03-16 17:12:17 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20160316171217-p5b360dfuxm5yidy
Tags: 9.0~0+2016.03.09.git.b1ba4b7747+dfsg1-1
* New upstream release based on commit b1ba4b7747.
* Uploading to unstable.
* Lots of tweaks to make Debian provisionning works.
* Standards-Version: 3.9.7 (no change).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#cloud-config
 
2
resize_rootfs: false
 
3
growpart:
 
4
  mode: false
 
5
disable_ec2_metadata: true
 
6
disable_root: false
 
7
user: root
 
8
password: r00tme
 
9
chpasswd: { expire: false }
 
10
ssh_pwauth: false
 
11
ssh_authorized_keys:
 
12
{% for key in common.ssh_auth_keys %}
 
13
  - {{ key }}
 
14
{% endfor %}
 
15
 
 
16
# set the locale to a given locale
 
17
# default: en_US.UTF-8
 
18
locale: en_US.UTF-8
 
19
 
 
20
timezone: {{ common.timezone }}
 
21
 
 
22
hostname: {{ common.hostname }}
 
23
fqdn: {{ common.fqdn }}
 
24
 
 
25
 
 
26
# add entries to rsyslog configuration
 
27
rsyslog:
 
28
  - filename: 10-log2master.conf
 
29
    content: |
 
30
      $template LogToMaster, "<%PRI%>1 %$NOW%T%TIMESTAMP:8:$%Z %HOSTNAME% %APP-NAME% %PROCID% %MSGID% -%msg%\n"
 
31
      *.* @{{ common.master_ip }};LogToMaster
 
32
 
 
33
 
 
34
# that module's missing in 0.6.3, but existent for >= 0.7.3
 
35
write_files:
 
36
 -   content: |
 
37
        ---
 
38
        url: {{ common.master_url }}
 
39
     path: /etc/nailgun-agent/config.yaml
 
40
 -   content: target
 
41
     path: /etc/nailgun_systemtype
 
42
 
 
43
mcollective:
 
44
  conf:
 
45
    main_collective: mcollective
 
46
    collectives: mcollective
 
47
    libdir: /usr/share/mcollective/plugins
 
48
    logfile: /var/log/mcollective.log
 
49
    loglevel: debug
 
50
    daemonize: 0
 
51
    direct_addressing: 1
 
52
    ttl: 4294957
 
53
    securityprovider: psk
 
54
    plugin.psk: {{ mcollective.pskey }}
 
55
    identity: {{ mcollective.identity }}
 
56
{% if mcollective.connector == 'stomp' %}
 
57
    connector = stomp
 
58
    plugin.stomp.host: {{ mcollective.host }}
 
59
    plugin.stomp.port: {{ mcollective.port|default(61613) }}
 
60
    plugin.stomp.user: {{ mcollective.user }}
 
61
    plugin.stomp.password: {{ mcollective.password }}
 
62
{% else %}
 
63
    connector: rabbitmq
 
64
    plugin.rabbitmq.vhost: {{ mcollective.vhost }}
 
65
    plugin.rabbitmq.pool.size: 1
 
66
    plugin.rabbitmq.pool.1.host: {{ mcollective.host }}
 
67
    plugin.rabbitmq.pool.1.port: {{ mcollective.port|default(61613) }}
 
68
    plugin.rabbitmq.pool.1.user: {{ mcollective.user }}
 
69
    plugin.rabbitmq.pool.1.password: {{ mcollective.password }}
 
70
    plugin.rabbitmq.heartbeat_interval: 30
 
71
{% endif %}
 
72
    factsource: yaml
 
73
    plugin.yaml: /etc/mcollective/facts.yaml
 
74
 
 
75
puppet:
 
76
  conf:
 
77
    main:
 
78
      logdir: /var/log/puppet
 
79
      rundir: /var/run/puppet
 
80
      ssldir: $vardir/ssl
 
81
      pluginsync: true
 
82
      prerun_command: /bin/true
 
83
      postrun_command: /bin/true
 
84
    agent:
 
85
      classfile: $vardir/classes.txt
 
86
      localconfig: $vardir/localconfig
 
87
      server: {{ puppet.master }}
 
88
      report: false
 
89
      configtimeout: 600
 
90
 
 
91
runcmd:
 
92
{% if puppet.enable != 1 %}
 
93
 - /usr/sbin/invoke-rc.d puppet stop
 
94
 - /usr/sbin/update-rc.d -f puppet remove
 
95
{% endif %}
 
96
{% if mcollective.enable != 1 %}
 
97
 - /usr/sbin/invoke-rc.d mcollective stop
 
98
 - echo manual > /etc/init/mcollective.override
 
99
{% else %}
 
100
 - rm -f /etc/init/mcollective.override
 
101
{% endif %}
 
102
 - iptables -t filter -F INPUT
 
103
 - iptables -t filter -F FORWARD
 
104
 
 
105
final_message: "YAY! The system is finally up, after $UPTIME seconds"