-
Notifications
You must be signed in to change notification settings - Fork 59
Expand file tree
/
Copy pathinstall.py
More file actions
137 lines (118 loc) · 3.93 KB
/
install.py
File metadata and controls
137 lines (118 loc) · 3.93 KB
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright (c) 2023 Cloud Software Group, Inc.
# MIT License (see LICENSE or https://opensource.org/licenses/MIT)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {
"metadata_version": "1.1",
"status": ["preview"],
"supported_by": "community",
}
DOCUMENTATION = r"""
---
module: install
short_description: Configuration for install resource.
description: Configuration for install resource.
version_added: 2.0.0
author:
- Sumanth Lingappa (@sumanth-lingappa)
- Shiva Shankar Vaddepally (@shivashankar-vaddepally)
options:
state:
choices:
- installed
default: present
description:
- The state of the resource being configured by the module on the NetScaler
ADC node.
- When C(Install), the resource will be installed on the NetScaler ADC node.
type: str
async:
type: bool
description:
- Use this flag to return the install id when the nitro api request is sent.
- The id can be used later to track the installation progress via show ns job
<id> command.
- For the cli request of install the flag is by default set as false as the
installation progress details can be tracked via cli
a:
type: bool
description:
- Use this flag to enable Citrix ADM Service Connect. This feature helps you
discover your Citrix ADC instances effortlessly on Citrix ADM service and
get insights and curated machine learning based recommendations for applications
and Citrix ADC infrastructure. This feature lets the Citrix ADC instance automatically
send system, usage and telemetry data to Citrix ADM service. View here [https://docs.citrix.com/en-us/citrix-adc/13/data-governance.html]
to learn more about this feature. Use of this feature is subject to the Citrix
End User ServiceAgreement. View here [https://www.citrix.com/buy/licensing/agreements.html].
enhancedupgrade:
type: bool
description:
- Use this flag for upgrading from/to enhancement mode.
l:
type: bool
description:
- Use this flag to enable callhome.
resizeswapvar:
type: bool
description:
- Use this flag to change swap size on ONLY 64bit nCore/MCNS/VMPE systems NON-VPX
systems.
url:
type: str
description:
- 'Url for the build file. Must be in the following formats:'
- http://[user]:[password]@host/path/to/file
- https://[user]:[password]@host/path/to/file
- sftp://[user]:[password]@host/path/to/file
- scp://[user]:[password]@host/path/to/file
- ftp://[user]:[password]@host/path/to/file
- file://path/to/file
y:
type: bool
description:
- Do not prompt for yes/no before rebooting.
extends_documentation_fragment: netscaler.adc.netscaler_adc
"""
EXAMPLES = r"""
"""
RETURN = r"""
---
changed:
description: Indicates if any change is made by the module
returned: always
type: bool
sample: true
diff:
description: Dictionary of before and after changes
returned: always
type: dict
sample: {'before': {'key1': 'xyz'}, 'after': {'key2': 'pqr'}, 'prepared': 'changes
done'}
diff_list:
description: List of differences between the actual configured object and the configuration
specified in the module
returned: when changed
type: list
sample: ["Attribute `key1` differs. Desired: (<class 'str'>) XYZ. Existing: (<class
'str'>) PQR"]
failed:
description: Indicates if the module failed or not
returned: always
type: bool
sample: false
loglines:
description: list of logged messages by the module
returned: always
type: list
sample: ['message 1', 'message 2']
"""
import os
from ..module_utils.module_executor import ModuleExecutor
RESOURCE_NAME = os.path.basename(__file__).replace(".py", "")
def main():
executor = ModuleExecutor(RESOURCE_NAME)
executor.main()
if __name__ == "__main__":
main()