coreos-cluster-cli
coreos-cluster-cli copied to clipboard
Cloud-init Support?
Is there any way to submit a cloud-init file? I want to auto-login the core user to my private repository without the need of tools like Ansible to provision a new host.
e.g.
write_files:
- path: /home/core/.dockercfg
permissions: 0644
content: |
{
"https://registry.example.com/v1/": {
"auth": "XXXXXXXXXXXXXX",
"email": "[email protected]"
}
}
We've talked about this in the underlying library: https://github.com/kenperkins/coreos-cluster/issues/10 (PR's welcome!)
Thanks, that's exactly what's needed. =)
We'd still want to support it in the command line, I wager.
The impetus for this feature has eased as I realized I can just use global fleet services to create files like (.dockercfg) with the credentials I need to access private repos. I kind of like using unit files for this more than cloud-config because it's easier to make changes to a running system.