-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from jordiprats/master
systemd 0.2
- Loading branch information
Showing
4 changed files
with
40 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
# CHANGELOG | ||
|
||
## 0.1.14 | ||
|
||
* Updated metadata for **eyp-systemd 0.2.0** | ||
|
||
## 0.1.13 | ||
|
||
* added support for SLES 12.4 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"puppet_task_version": 1, | ||
"supports_noop": false, | ||
"input_method": "stdin", | ||
"description": "force NTP update", | ||
"parameters": { | ||
"ntpserver": { | ||
"description": "NTP server to use", | ||
"type": "String[1]" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/usr/bin/python | ||
|
||
import sys | ||
import json | ||
from pprint import pprint | ||
import subprocess | ||
|
||
params = json.load(sys.stdin) | ||
|
||
ntpserver = params['ntpserver'] | ||
|
||
# puppet resource service ntp ensure=stopped | ||
|
||
result={} | ||
result['forcesync']={} | ||
result['forcesync']['server']=ntpserver | ||
result['forcesync']['output']=subprocess.check_output("ntpdate "+ntpserver, shell=True) | ||
|
||
# puppet resource service ntp ensure=running | ||
|
||
print(json.dumps(result)) |