Project

General

Profile

Bug #20590 ยป ntp_configuration.json

Nicolas CHARLES, 2022-01-18 15:22

 
{
"type": "ncf_technique",
"version": "3.0",
"data": {
"id": "ntp_configuration",
"version": "1.0",
"name": "NTP configuration",
"description": "",
"category": "ncf_techniques",
"parameter": [
{
"id": "69e61fc7-5645-4a4e-a0a8-8182f5e78837",
"name": "server",
"description": "ntp server"
}
],
"calls": [
{
"component": "Package present",
"id": "9d0766f4-a51b-43d4-9070-47095813abc0",
"method": "package_present",
"condition": "",
"parameters": [
{
"name": "name",
"value": "chrony"
},
{
"name": "version",
"value": ""
},
{
"name": "architecture",
"value": ""
},
{
"name": "provider",
"value": ""
}
],
"disableReporting": false
},
{
"component": "File content",
"id": "7b903c1e-ea68-4209-8dba-2bb62f15627c",
"method": "file_content",
"condition": "package_present_chrony_ok",
"parameters": [
{
"name": "path",
"value": "/etc/chrony.conf"
},
{
"name": "lines",
"value": "Server ${server}"
},
{
"name": "enforce",
"value": "true"
}
],
"disableReporting": false
},
{
"component": "Service restart",
"id": "420d5c88-99b6-4386-b03a-90803b48ae6d",
"method": "service_restart",
"condition": "file_lines_present__etc_ntp_conf_repaired",
"parameters": [
{
"name": "name",
"value": "chronyd"
}
],
"disableReporting": false
},
{
"component": "Service started",
"id": "3fd65fbf-2517-4cf4-8187-b386d70b5b1c",
"method": "service_started",
"condition": "",
"parameters": [
{
"name": "name",
"value": "chronyd"
}
],
"disableReporting": false
}
],
"resources": []
}
}
    (1-1/1)