-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathmetainfo.xml
64 lines (64 loc) · 2.57 KB
/
metainfo.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?xml version="1.0"?>
<metainfo>
<schemaVersion>2.0</schemaVersion>
<services>
<service>
<!-- Internal name for service (must be unique) -->
<name>NTPD</name>
<!-- display name in Ambari UI -->
<displayName>ntpd</displayName>
<!-- Description of service - will be displayed when user clicks add service -->
<comment>The Network Time Protocol daemon (ntpd) is an operating system program that maintains the system time in synchronization with time servers using the Network Time Protocol. This service is for <b>Demo purposes only</b> and is <b>not officially supported</b></comment>
<!-- Version of service -->
<version>0.1.0</version>
<components>
<!-- In this case, there is only one master component -->
<component>
<name>NTPD_MASTER</name>
<displayName>ntpd</displayName>
<category>MASTER</category>
<!-- how many of these components are allowed in a cluster -->
<cardinality>1+</cardinality>
<!-- reference to (and details of) what script is to be used to install/stop/start/config the service -->
<commandScript>
<script>scripts/master.py</script>
<scriptType>PYTHON</scriptType>
<timeout>600</timeout>
</commandScript>
</component>
<component>
<name>NTP_CLIENT</name>
<displayName>ntpdate</displayName>
<category>CLIENT</category>
<!-- how many of these components are allowed in a cluster -->
<cardinality>1+</cardinality>
<!-- reference to (and details of) what script is to be used to install/stop/start/config the service -->
<commandScript>
<script>scripts/client.py</script>
<scriptType>PYTHON</scriptType>
<timeout>600</timeout>
</commandScript>
</component>
</components>
<!-- what yum packages need to be installed -->
<osSpecifics>
<osSpecific>
<osFamily>redhat6,redhat7</osFamily>
<packages>
<package>
<name>ntp</name>
</package>
<package>
<name>ntpdate</name>
</package>
</packages>
</osSpecific>
</osSpecifics>
<!-- names for config files (under configuration dir) -->
<configuration-dependencies>
<config-type>ntpd-config</config-type>
</configuration-dependencies>
<restartRequiredAfterChange>false</restartRequiredAfterChange>
</service>
</services>
</metainfo>