diff options
author | Bruce Ashfield <bruce.ashfield@windriver.com> | 2014-03-10 02:31:47 -0400 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2014-03-11 00:46:47 -0400 |
commit | f17693e030d88d0d2a85d92d506506c34a0fb111 (patch) | |
tree | 18ff0fc3e001e764809bf19122ff6456e869e0fe /meta-openstack/recipes-extended/cloud-init/cloud-init/cloud.cfg | |
parent | 4264b4b64cf6ec230d350a0ca950b72554724994 (diff) | |
download | meta-cloud-services-f17693e030d88d0d2a85d92d506506c34a0fb111.tar.gz |
cloud-init: create skeleton package
This creates a basic/skeleton cloud-init package that has the following
properties:
- working sysvinit scripts
- Wind River distro definition
- baseline cloud.cfg with no data source and "hands off" configuration
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'meta-openstack/recipes-extended/cloud-init/cloud-init/cloud.cfg')
-rw-r--r-- | meta-openstack/recipes-extended/cloud-init/cloud-init/cloud.cfg | 99 |
1 files changed, 99 insertions, 0 deletions
diff --git a/meta-openstack/recipes-extended/cloud-init/cloud-init/cloud.cfg b/meta-openstack/recipes-extended/cloud-init/cloud-init/cloud.cfg new file mode 100644 index 0000000..f868936 --- /dev/null +++ b/meta-openstack/recipes-extended/cloud-init/cloud-init/cloud.cfg | |||
@@ -0,0 +1,99 @@ | |||
1 | # The top level settings are used as module | ||
2 | # and system configuration. | ||
3 | |||
4 | # A set of users which may be applied and/or used by various modules | ||
5 | # when a 'default' entry is found it will reference the 'default_user' | ||
6 | # from the distro configuration specified below | ||
7 | users: | ||
8 | - default | ||
9 | |||
10 | # If this is set, 'root' will not be able to ssh in and they | ||
11 | # will get a message to login instead as the above $user (ubuntu) | ||
12 | disable_root: False | ||
13 | |||
14 | # This will cause the set+update hostname module to not operate (if true) | ||
15 | preserve_hostname: false | ||
16 | manage_etc_hosts: %MANAGE_HOSTS% | ||
17 | |||
18 | datasource_list: | ||
19 | - None | ||
20 | |||
21 | # Example datasource config | ||
22 | # datasource: | ||
23 | # Ec2: | ||
24 | # metadata_urls: [ 'blah.com' ] | ||
25 | # timeout: 5 # (defaults to 50 seconds) | ||
26 | # max_wait: 10 # (defaults to 120 seconds) | ||
27 | |||
28 | # The modules that run in the 'init' stage | ||
29 | cloud_init_modules: | ||
30 | - migrator | ||
31 | - seed_random | ||
32 | - bootcmd | ||
33 | - write-files | ||
34 | - growpart | ||
35 | - set_hostname | ||
36 | - update_hostname | ||
37 | - update_etc_hosts | ||
38 | - ca-certs | ||
39 | - rsyslog | ||
40 | - users-groups | ||
41 | - ssh | ||
42 | |||
43 | # The modules that run in the 'config' stage | ||
44 | cloud_config_modules: | ||
45 | # Emit the cloud config ready event | ||
46 | # this can be used by upstart jobs for 'start on cloud-config'. | ||
47 | - emit_upstart | ||
48 | - disk_setup | ||
49 | - mounts | ||
50 | - ssh-import-id | ||
51 | - locale | ||
52 | - set-passwords | ||
53 | - grub-dpkg | ||
54 | - apt-pipelining | ||
55 | - apt-configure | ||
56 | - package-update-upgrade-install | ||
57 | - landscape | ||
58 | - timezone | ||
59 | - puppet | ||
60 | - chef | ||
61 | - salt-minion | ||
62 | - mcollective | ||
63 | - disable-ec2-metadata | ||
64 | - runcmd | ||
65 | - byobu | ||
66 | |||
67 | # The modules that run in the 'final' stage | ||
68 | cloud_final_modules: | ||
69 | - rightscale_userdata | ||
70 | - scripts-per-once | ||
71 | - scripts-per-boot | ||
72 | - scripts-per-instance | ||
73 | - scripts-user | ||
74 | - ssh-authkey-fingerprints | ||
75 | - keys-to-console | ||
76 | - phone-home | ||
77 | - final-message | ||
78 | - power-state-change | ||
79 | |||
80 | # set the hostname | ||
81 | hostname: %HOSTNAME% | ||
82 | |||
83 | # System and/or distro specific settings | ||
84 | # (not accessible to handlers/transforms) | ||
85 | system_info: | ||
86 | # This will affect which distro class gets used | ||
87 | distro: windriver | ||
88 | # Default user name + that default users groups (if added/used) | ||
89 | default_user: | ||
90 | name: root | ||
91 | lock_passwd: False | ||
92 | groups: [adm, audio, cdrom, dialout, dip, floppy, netdev, plugdev, sudo, video] | ||
93 | sudo: ["ALL=(ALL) NOPASSWD:ALL"] | ||
94 | shell: /bin/bash | ||
95 | # Other config here will be given to the distro class and/or path classes | ||
96 | paths: | ||
97 | cloud_dir: /var/lib/cloud/ | ||
98 | templates_dir: /etc/cloud/templates/ | ||
99 | ssh_svcname: ssh | ||