Created
August 12, 2015 15:49
-
-
Save larsks/8e0848d4e81c9e7cb066 to your computer and use it in GitHub Desktop.
cloud-init patch testing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Aug 12 15:44:41 localhost.localdomain cloud-init[428]: [CLOUDINIT] cloud_config.py[DEBUG]: Merging by applying json patch [{"path": "/cloud_final_modules/-", "value": "power_state_change", "op": "add"}] | |
Aug 12 15:44:41 localhost.localdomain cloud-init[428]: [CLOUDINIT] util.py[WARNING]: Failed at merging in cloud config part from part-001 | |
Aug 12 15:44:41 localhost.localdomain cloud-init[428]: 2015-08-12 15:44:41,311 - util.py[WARNING]: Failed at merging in cloud config part from part-001 | |
Aug 12 15:44:41 localhost.localdomain cloud-init[428]: [CLOUDINIT] util.py[DEBUG]: Failed at merging in cloud config part from part-001 | |
Traceback (most recent call last): | |
File "/usr/lib/python2.7/site-packages/cloudinit/handlers/cloud_config.py", line 155, in handle_part | |
self._merge_patch(payload) | |
File "/usr/lib/python2.7/site-packages/cloudinit/handlers/cloud_config.py", line 129, in _merge_patch | |
self.cloud_buf = patch.apply(self.cloud_buf, in_place=False) | |
File "/usr/lib/python2.7/site-packages/jsonpatch.py", line 344, in apply | |
obj = operation.apply(obj) | |
File "/usr/lib/python2.7/site-packages/jsonpatch.py", line 407, in apply | |
subobj, part = self.pointer.to_last(obj) | |
File "/usr/lib/python2.7/site-packages/jsonpointer.py", line 127, in to_last | |
doc = self.walk(doc, part) | |
File "/usr/lib/python2.7/site-packages/jsonpointer.py", line 181, in walk | |
raise JsonPointerException("member '%s' not found in %s" % (part, doc)) | |
JsonPointerException: member 'cloud_final_modules' not found in {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
users: | |
- default | |
disable_root: 1 | |
ssh_pwauth: 0 | |
locale_configfile: /etc/sysconfig/i18n | |
mount_default_fields: [~, ~, 'auto', 'defaults,nofail', '0', '2'] | |
resize_rootfs_tmp: /dev | |
ssh_deletekeys: 0 | |
ssh_genkeytypes: ~ | |
syslog_fix_perms: ~ | |
cloud_init_modules: | |
- migrator | |
- bootcmd | |
- write-files | |
- growpart | |
- resizefs | |
- set_hostname | |
- update_hostname | |
- update_etc_hosts | |
- rsyslog | |
- users-groups | |
- ssh | |
cloud_config_modules: | |
- mounts | |
- locale | |
- set-passwords | |
- yum-add-repo | |
- package-update-upgrade-install | |
- timezone | |
- puppet | |
- chef | |
- salt-minion | |
- mcollective | |
- disable-ec2-metadata | |
- runcmd | |
cloud_final_modules: | |
- rightscale_userdata | |
- scripts-per-once | |
- scripts-per-boot | |
- scripts-per-instance | |
- scripts-user | |
- ssh-authkey-fingerprints | |
- keys-to-console | |
- phone-home | |
- final-message | |
system_info: | |
default_user: | |
name: centos | |
lock_passwd: true | |
gecos: Cloud User | |
groups: [wheel, adm, systemd-journal] | |
sudo: ["ALL=(ALL) NOPASSWD:ALL"] | |
shell: /bin/bash | |
distro: rhel | |
paths: | |
cloud_dir: /var/lib/cloud | |
templates_dir: /etc/cloud/templates | |
ssh_svcname: sshd | |
# vim:syntax=yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#cloud-config-jsonp | |
[ | |
{ | |
"op": "add", | |
"path": "/cloud_final_modules/-", | |
"value": "power_state_change" | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment