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

« back to all changes in this revision

Viewing changes to cloud-init-templates/cloud_config_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:
4
4
  mode: false
5
5
disable_ec2_metadata: true
6
6
disable_root: false
7
 
user: root
8
 
password: r00tme
 
7
users:
 
8
{% for user in user_accounts %}
 
9
  - name: {{ user.name }}
 
10
    plain_text_passwd: {{ user.password }}
 
11
    lock_passwd: False
 
12
    homedir: {{ user.homedir }}
 
13
    shell: {{ user.shell }}
 
14
    {% if user.ssh_keys|length > 0 %}
 
15
    ssh_authorized_keys:
 
16
    {% for key in user.ssh_keys %}
 
17
      - {{ key }}
 
18
    {% endfor %}
 
19
    {% endif %}
 
20
    {% if user.sudo|length > 0 %}
 
21
    sudo:
 
22
    {% for entry in user.sudo %}
 
23
      - "{{ entry }}"
 
24
    {% endfor %}
 
25
    {% endif %}
 
26
{% endfor %}
9
27
chpasswd: { expire: false }
10
28
ssh_pwauth: false
11
 
ssh_authorized_keys:
12
 
{% for key in common.ssh_auth_keys %}
13
 
  - {{ key }}
14
 
{% endfor %}
15
29
 
16
30
# set the locale to a given locale
17
31
# default: en_US.UTF-8