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!
@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.
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.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.