added auth to ntp formula
Change-Id: Ida54379a126ff1c43517bbe489f3fb591e89c004
diff --git a/tests/pillar/client_auth.sls b/tests/pillar/client_auth.sls
new file mode 100644
index 0000000..ebe515e
--- /dev/null
+++ b/tests/pillar/client_auth.sls
@@ -0,0 +1,25 @@
+ntp:
+ client:
+ enabled: true
+ auth:
+ enabled: true
+ secrets:
+ # Jsonschemavalidator expect pattern keys in str format
+ "1":
+ secret_type: 'M'
+ secret: 'Runrabbitrundigthath'
+ trustedkey: true
+ "2":
+ secret_type: 'M'
+ secret: 'Howiwishyouwereherew'
+ trustedkey: false
+ strata:
+ - ntp.cesnet.cz
+ - pool.ntp.org
+ stratum:
+ primary:
+ server: ntp.cesnet.cz
+ key_id: 1
+ secondary:
+ server: ntp.nic.cz
+ key_id: 2
\ No newline at end of file
diff --git a/tests/pillar/server.sls b/tests/pillar/server.sls
index 0f2e2f2..5287e83 100644
--- a/tests/pillar/server.sls
+++ b/tests/pillar/server.sls
@@ -1,18 +1,18 @@
ntp:
server:
enabled: true
+ mode7: true
+ orphan: 5
+ peers:
+ - host: 192.168.31.1
+ - host: 192.168.31.2
+ - host: 192.168.31.3
+ restrict:
+ - mask: 255.255.255.0
+ subnet: 192.168.0.1
+ - mask: 255.255.0.0
+ options: notrap nomodify
+ subnet: 172.16.1.1
strata:
- ntp.cesnet.cz
- - pool.ntp.org
- restrict:
- - subnet: 192.168.0.1
- mask: 255.255.255.0
- - subnet: 172.16.1.1
- mask: 255.255.0.0
- options: notrap nomodify
- mode7: true
- peers:
- - 192.168.31.1
- - 192.168.31.2
- - 192.168.31.3
- orphan: 5
+ - pool.ntp.org
\ No newline at end of file
diff --git a/tests/pillar/server_auth.sls b/tests/pillar/server_auth.sls
new file mode 100644
index 0000000..9c351c9
--- /dev/null
+++ b/tests/pillar/server_auth.sls
@@ -0,0 +1,37 @@
+ntp:
+ server:
+ enabled: true
+ auth:
+ enabled: true
+ secrets:
+ # Jsonschemavalidator expect pattern keys in str format
+ "1":
+ secret: Runrabbitrundigthath
+ secret_type: M
+ trustedkey: true
+ "2":
+ secret: Howiwishyouwereherew
+ secret_type: M
+ trustedkey: false
+ mode7: true
+ orphan: 5
+ peers:
+ - host: 192.168.31.1
+ - host: 192.168.31.2
+ - host: 192.168.31.3
+ restrict:
+ - mask: 255.255.255.0
+ subnet: 192.168.0.1
+ - mask: 255.255.0.0
+ options: notrap nomodify
+ subnet: 172.16.1.1
+ strata:
+ - ntp.cesnet.cz
+ - pool.ntp.org
+ stratum:
+ primary:
+ server: ntp.cesnet.cz
+ key_id: 1
+ secondary:
+ server: ntp.nic.cz
+ key_id: 2