AWS: Install ntp daemon on all nodes

The AWS API requires a signature on method calls, including the
timestamp to prevent replay attacks.  A time drift of up to 5 minutes
between client and server is tolerated.

However, if the client clock drifts by >5 minutes, the server will start
to reject API calls (with the cryptic "AWS was not able to validate the
provided access credentials").

To prevent this happening, we install ntp on all nodes.

Fix #11371
pull/6/head
Justin Santa Barbara 2015-08-01 13:13:53 -04:00
parent 6129d3d4eb
commit 463458bf5f
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,11 @@
ntp:
pkg:
- installed
ntp-service:
service:
- running
- name: ntp
- watch:
- pkg: ntp

View File

@ -3,6 +3,9 @@ base:
- base
- debian-auto-upgrades
- salt-helpers
{% if grains.get('cloud') == 'aws' %}
- ntp
{% endif %}
'roles:kubernetes-pool':
- match: grain