Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cloud-init Support? #7

Open
cloudpossebot opened this issue Mar 3, 2015 · 4 comments
Open

Cloud-init Support? #7

cloudpossebot opened this issue Mar 3, 2015 · 4 comments

Comments

@cloudpossebot
Copy link

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]"
       }
      }
@kenperkins
Copy link
Owner

We've talked about this in the underlying library: kenperkins/coreos-cluster#10 (PR's welcome!)

@cloudpossebot
Copy link
Author

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

@kenperkins
Copy link
Owner

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

@cloudpossebot
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants