Report this

What is the reason for this report?

cloud-config on cents not working (at all)

Posted on January 5, 2015

I am trying to create a new CentOS7 (in AMS2) droplet with the following User-Data. Unfortunately none of the provided User-Data are applied.

Please advise.

#cloud-config

users:
  - name: someuser
    groups: wheel
    sudo: ['ALL=(ALL) NOPASSWD:ALL']
    shell: /bin/bash
    ssh-authorized-keys:
      - ssh-dss 
AAAABBBBCCCCDDDD...

runcmd:
  - sed -i -e '/^PermitRootLogin/s/^.*$/PermitRootLogin yes/' /etc/ssh/sshd_config
  - sed -i -e '$aAllowUsers someuser' /etc/ssh/sshd_config
  - service sshd restart


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

@asb
Any updates on this? I tested some things with CentOS on AMS3 and experienced issues loading packages (which causes cloud-init to stop running the rest of the script).

This is quite annoying as it should be a default feature as per DO which isnt working due to some config issues on the DO site causing massive delay on my site, forcing me switching to EC2 or linode for further testing purposes.

Can you please trigger support as you mentioned you do / did and get them higher attention here?

I think if DO advertises features, they should make sure they work and keep them working.

How do you fix the problem?

Bump. Any easy/known fix for this?

After a recent reboot, I find nothing logging to syslog, messages, secure. They were written to at the time of boot, but not since (now 3 days later). btmp, wtmp, and lastlog are updating, other apps logging outside of /var/log are writing still.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.