Skip to content

Instantly share code, notes, and snippets.

@igalic

igalic/foo.json Secret

Created Dec 6, 2019
Embed
What would you like to do?
{
"_beta_keys": [
"subplatform"
],
"availability_zone": null,
"base64_encoded_keys": [],
"cloud_name": "none",
"ds": {
"_doc": "EXPERIMENTAL: The structure and format of content scoped under the 'ds' key may change in subsequent releases of cloud-init.",
"meta_data": {}
},
"instance_id": "iid-datasource-none",
"local_hostname": "container-host-02",
"platform": "none",
"public_ssh_keys": [],
"region": null,
"sensitive_keys": [],
"subplatform": "config",
"userdata": "#cloud-config\nruncmd:\n - exec >> /var/log/cloud-init-output.log\n - exec 2>&1\n - echo '# setting role as fact'\n - mkdir -p /etc/facter/facts.d\n - echo 'role=container-host' > /etc/facter/facts.d/role.txt\n - echo '# creating deploy key and other root ssh creds'\n - mkdir -p /root/.ssh/\n - cp -r /usr/home/freebsd/.ssh/authorized_keys /root/.ssh/authorized_keys\n - echo '# allowing root login'\n - pw unlock root\n - echo 'PermitRootLogin prohibit-password' > /etc/ssh/sshd_config\n - service sshd reload\n - echo '# updating system'\n - env PAGER=cat freebsd-update fetch install\n - pkg update\n - pkg upgrade -y\n - echo '# installing software to work comfortably work'\n - pkg install -y puppet6 git fish tig tmux neovim ripgrep python36 rubygem-pry rubygem-r10k\n - chsh -s /usr/local/bin/fish root\n - sysrc pf_enable=YES\n - echo 'scrub in all' >> /etc/pf.conf\n - service pf start - echo '# enable rctl & HTTP Accept'\n - echo 'kern.racct.enable=1' > /boot/loader.conf\n - echo 'accf_data_load=\"YES\"' >> /boot/loader.conf\n\npower_state:\n mode: reboot",
"v1": {
"_beta_keys": [
"subplatform"
],
"availability_zone": null,
"cloud_name": "none",
"instance_id": "iid-datasource-none",
"local_hostname": "container-host-02",
"platform": "none",
"public_ssh_keys": [],
"region": null,
"subplatform": "config"
},
"vendordata": "Content-Type: multipart/mixed; boundary=\"===============4762425958046506823==\"\nMIME-Version: 1.0\n\n--===============4762425958046506823==\nContent-Type: text/text/cloud-config; charset=\"us-ascii\"\nMIME-Version: 1.0\nContent-Transfer-Encoding: 7bit\nContent-Disposition: attachment; filename=\"cloud-config\"\n\n#cloud-config\nfqdn: ubuntu-2gb-nbg1-1\nmanage_etc_hosts: true\nrandom_seed:\n data: !!binary |\n dHNWQVZEc0ZsTGNVZHBrSTh5ay85UElkR2xNdEF6Q2pHa1ZReHhZTlJEWmFuVGdPQzVBMHpaUjZN\n Q09EcGkzMC80VkJsQzFsTDdlMm5IcGVCNC9DWkhzcitUQkdQdFNtdUtMMCtsemhpcSsrMjRrY1d1\n SFR5c0UvN3BkWkdUZjZwN295NlUrSzd4K3dnN1hWVGlmMmtRZDgzRWV6TERoUVdrVHJaTnFrRkIr\n YnVwcjFUMTM1QXp4Nk41Y3U0Wk12ZmkzcjdLSHhJQnczS0VFZDVGa3RBNXVCdzBYYm9HdXFmRzV4\n KzBKNVhvSnJNdlFkdGlyamFWQjFJbTVrQnFSeGV3cDRFNDg1YmtRR0JlOVdHNGRkSWJxNHIvQWl2\n enQ4MkJOdllYdFRXM2lUMDkvZzIva2VuYXlaOTRITUF2S2o4Y3M5clFGNVZGSXRveHhBaUtHODVh\n TEQxZjQ4V3dDSDd1QVQzd1BZYUNZS3k5NTlYUi9IaVIwMHVXT2I0OGlmaUQ5cjUxRWlBa2xlaFg5\n OFh3UWFjMWJuY05uZ1V3WkJHellqVWhiQk14bXJxMTRrOTBKZ2Z3S2NRNzZ3YkRIbHVKSFZOM0NP\n L0V5andoS3dmODE1dGVMakdDK0I4UkJja3lRV3dZSEFZOVBSTDFMbXFIL0ZqUTdsdi9TTW1DQ3VT\n NWo5Z1pWaW43MzZQL1htNnFGeFdua29jb3BCNHhsZThvRGxlMkF3anZTUmY0czNmRDE4ZTZ0ZDgr\n TDlnaThvZVA2UWltWWI3cWw2NjNhYkVzTjJJamtqQ0tUVmNNSXh4V1FyeXBtOUlBUVo1WlNqZ1pj\n M25oTFBiMlVtYUNCbUJOeVdKcHV2Zjk2RHlsbWtWNEJXcTVxSUNrWX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uMXZ4THczSWRkd25u\n b0FOYWRGdUhaUmdLbm5qMmJrL28xb2pBRENDNnAzcWEwbkVGZjlaZ3R1L0FHdVZveGNtSjAyMlpr\n T3g5SEZBM2NMZHJwOXFhamNjbmNKZ2VuajVZVTNJQXowWDF1aGkwYnBhWWJkSXkzQmVlQ2NyWlVF\n SS85TEtlMnlqV1ZYcDJPYmxCTmVvcTlCWWhRMFlrSW11MjFwS0Ewd3NReXVUZ1JSR2tTTG5wVndk\n NmQ5VVdJTEFEbTM3WnVsbXVNaVJiQWZINlNUSGhjcndMN0JMY3RXbEgrK3A4M2lCWUhubFZPSGhj\n Sy9BL1lxZTFOYVgzUFlJR2szWG9ueGt5M1pYWW8zWGhGUlRTeGhqdVhwR0ZrUU5RYWNGMEY0NTV0\n WHJlelBMKzZBSXQzVUlhUnU1V2x0UEFjSDV0U3MrbDVvYWFSV0VMT0p3RFArbXErS1E0Yk9WU0ln\n TW8rNmV1aXVOU1JTRnZpUGRCUERLOVB4Yytqc1hTcDMwWVoxSXNqWklKc2dVSVpkYnd1UGZIU3lj\n VTJJa3FQdHJncG91Qks0clVWcjh2QUxjbnl6WWxkejh5dVRwakFWVnQxVVJFYmUvVGNsakEvQ0RR\n K25VY2tNQ3dIK2Q1bytQbzlHZXp0TGpPNzFPS2ZxZE1pK21jeEsyamRJK3doL3JCeDV3RT0=\n encoding: base64\n file: /dev/urandom\nruncmd:\n- udevadm trigger -c add -s block -p ID_VENDOR=HC --verbose -p ID_MODEL=Volume\nsystem_info:\n default_user:\n lock_passwd: true\n name: root\n shell: /bin/bash\n distro: ubuntu\n\n--===============4762425958046506823==\nContent-Type: text/text/cloud-boothook; charset=\"us-ascii\"\nMIME-Version: 1.0\nContent-Transfer-Encoding: 7bit\nContent-Disposition: attachment; filename=\"hc-boot-script\"\n\n#!/bin/bash\n\n--===============4762425958046506823==--\n"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment