coreos-cluster-cli icon indicating copy to clipboard operation
coreos-cluster-cli copied to clipboard

Cloud-init Support?

Open cloudpossebot opened this issue 10 years ago • 4 comments

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]"
       }
      }

cloudpossebot avatar Mar 03 '15 00:03 cloudpossebot

We've talked about this in the underlying library: https://github.com/kenperkins/coreos-cluster/issues/10 (PR's welcome!)

kenperkins avatar Mar 03 '15 00:03 kenperkins

Thanks, that's exactly what's needed. =)

cloudpossebot avatar Mar 03 '15 01:03 cloudpossebot

We'd still want to support it in the command line, I wager.

kenperkins avatar Mar 03 '15 01:03 kenperkins

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.

cloudpossebot avatar Mar 11 '15 00:03 cloudpossebot