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

Update cloud-init to set timezone #66

Closed
cmoulliard opened this issue May 8, 2018 · 0 comments
Closed

Update cloud-init to set timezone #66

cmoulliard opened this issue May 8, 2018 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@cmoulliard
Copy link
Member

cmoulliard commented May 8, 2018

Times diverge between local machine and VM

  1. Machine time
14:01
  1. VM time
[root@cloud ~]# date
Tue May 8 12:01:31 UTC 2018

Solution : Change timezone during vm creation timedatectl set-timezone Europe/Brussels
How : https://access.redhat.com/solutions/2996411

# vi user-data
#cloud-config
password: redhat
chpasswd: { expire: False }
ssh_pwauth: True
ssh_authorized_keys:
   - ssh-ed25519 AAAAC3Naaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa0 me@example.com
runcmd:
   - timedatectl set-timezone UTC
@cmoulliard cmoulliard added the enhancement New feature or request label May 8, 2018
@cmoulliard cmoulliard added this to the 3.9.SP3 milestone May 8, 2018
geoand added a commit that referenced this issue May 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants