choria-mcorpc-support 2.26.5 → 2.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.rspec +1 -0
- data/.rubocop.yml +162 -0
- data/.ruby-version +1 -0
- data/CHANGELOG.md +101 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/CONTRIBUTING.md +45 -0
- data/Gemfile +23 -0
- data/LICENSE +202 -0
- data/NOTICE +6 -0
- data/README.md +14 -0
- data/Rakefile +59 -0
- data/etc/client.cfg.dist +21 -0
- data/etc/facts.yaml.dist +2 -0
- data/etc/server.cfg.dist +22 -0
- data/etc/ssl/PLACEHOLDER +0 -0
- data/etc/ssl/clients/PLACEHOLDER +0 -0
- data/lib/mcollective/util/tasks_support.rb +1 -0
- metadata +18 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 318e3c7cceb16bc5329f6977b38ae433aab33aa504bc8f6d85fed1f9caf54084
|
|
4
|
+
data.tar.gz: f696bed9d1f0ae4ba735340f914675290674adb412cd1d4643e7a578a04b97fa
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 658c6b9e32fabed266c261b442c1fbfc08336c041cb653cb7612c0191072f417b26b122b19986de1d57712a5a80ef161d4f1134ebaea33c46ed163201e392ba5
|
|
7
|
+
data.tar.gz: b61c07dd5b9b87df9690bd14a948f3405a1a81444c62a3bca862cda567096cca8398c9897ed9a956a759d0f82d106b2f729593f2506862af85792a6954da3aeb
|
data/.rspec
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
--color
|
data/.rubocop.yml
ADDED
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
AllCops:
|
|
2
|
+
TargetRubyVersion: "2.4"
|
|
3
|
+
DisplayCopNames: true
|
|
4
|
+
DisplayStyleGuide: true
|
|
5
|
+
SuggestExtensions: false
|
|
6
|
+
Exclude:
|
|
7
|
+
- "module/**/*"
|
|
8
|
+
- "vendor/**/*"
|
|
9
|
+
- "spec/fixtures/**/*"
|
|
10
|
+
|
|
11
|
+
# restore pre 0.45 behaviour
|
|
12
|
+
Style/SingleLineBlockParams:
|
|
13
|
+
Methods:
|
|
14
|
+
- reduce:
|
|
15
|
+
- a
|
|
16
|
+
- e
|
|
17
|
+
- inject:
|
|
18
|
+
- a
|
|
19
|
+
- e
|
|
20
|
+
|
|
21
|
+
Style/NumericPredicate:
|
|
22
|
+
EnforcedStyle: comparison
|
|
23
|
+
|
|
24
|
+
Style/TrailingUnderscoreVariable:
|
|
25
|
+
Enabled: false
|
|
26
|
+
|
|
27
|
+
Lint/NonLocalExitFromIterator:
|
|
28
|
+
Enabled: false
|
|
29
|
+
|
|
30
|
+
Naming/ClassAndModuleCamelCase:
|
|
31
|
+
Enabled: false
|
|
32
|
+
|
|
33
|
+
Style/NumericLiterals:
|
|
34
|
+
Enabled: false
|
|
35
|
+
|
|
36
|
+
Style/BlockDelimiters:
|
|
37
|
+
Enabled: false
|
|
38
|
+
|
|
39
|
+
Style/RegexpLiteral:
|
|
40
|
+
Enabled: false
|
|
41
|
+
|
|
42
|
+
Style/StringLiterals:
|
|
43
|
+
EnforcedStyle: double_quotes
|
|
44
|
+
|
|
45
|
+
Style/FormatString:
|
|
46
|
+
EnforcedStyle: percent
|
|
47
|
+
|
|
48
|
+
Style/FormatStringToken:
|
|
49
|
+
EnforcedStyle: unannotated
|
|
50
|
+
|
|
51
|
+
Style/SpecialGlobalVars:
|
|
52
|
+
Enabled: false
|
|
53
|
+
|
|
54
|
+
Style/HashSyntax:
|
|
55
|
+
EnforcedStyle: hash_rockets
|
|
56
|
+
|
|
57
|
+
Style/WordArray:
|
|
58
|
+
Enabled: false
|
|
59
|
+
|
|
60
|
+
Layout/SpaceAroundEqualsInParameterDefault:
|
|
61
|
+
EnforcedStyle: no_space
|
|
62
|
+
|
|
63
|
+
Style/SignalException:
|
|
64
|
+
EnforcedStyle: only_raise
|
|
65
|
+
|
|
66
|
+
Style/RescueModifier:
|
|
67
|
+
Enabled: false
|
|
68
|
+
|
|
69
|
+
Layout/SpaceInsideBlockBraces:
|
|
70
|
+
Enabled: false
|
|
71
|
+
|
|
72
|
+
Layout/SpaceInsideHashLiteralBraces:
|
|
73
|
+
EnforcedStyle: no_space
|
|
74
|
+
|
|
75
|
+
Style/EachWithObject:
|
|
76
|
+
Enabled: false
|
|
77
|
+
|
|
78
|
+
Style/GuardClause:
|
|
79
|
+
Enabled: false
|
|
80
|
+
|
|
81
|
+
Naming/PredicateName:
|
|
82
|
+
Enabled: false
|
|
83
|
+
|
|
84
|
+
Style/DoubleNegation:
|
|
85
|
+
Enabled: false
|
|
86
|
+
|
|
87
|
+
Style/Documentation:
|
|
88
|
+
Enabled: false
|
|
89
|
+
Severity: warning
|
|
90
|
+
|
|
91
|
+
Style/PerlBackrefs:
|
|
92
|
+
Enabled: false
|
|
93
|
+
|
|
94
|
+
Style/Lambda:
|
|
95
|
+
Enabled: false
|
|
96
|
+
|
|
97
|
+
Style/ConditionalAssignment:
|
|
98
|
+
Enabled: false
|
|
99
|
+
|
|
100
|
+
Style/Alias:
|
|
101
|
+
Enabled: false
|
|
102
|
+
|
|
103
|
+
Lint/UnusedMethodArgument:
|
|
104
|
+
Enabled: false
|
|
105
|
+
|
|
106
|
+
Lint/AssignmentInCondition:
|
|
107
|
+
Enabled: false
|
|
108
|
+
|
|
109
|
+
Layout/LineLength:
|
|
110
|
+
Max: 180
|
|
111
|
+
|
|
112
|
+
Metrics/PerceivedComplexity:
|
|
113
|
+
Enabled: false
|
|
114
|
+
|
|
115
|
+
Metrics/ParameterLists:
|
|
116
|
+
Enabled: false
|
|
117
|
+
|
|
118
|
+
Metrics/AbcSize:
|
|
119
|
+
Enabled: false
|
|
120
|
+
|
|
121
|
+
Metrics/MethodLength:
|
|
122
|
+
Max: 50
|
|
123
|
+
|
|
124
|
+
Metrics/CyclomaticComplexity:
|
|
125
|
+
Enabled: false
|
|
126
|
+
|
|
127
|
+
Metrics/ClassLength:
|
|
128
|
+
Enabled: false
|
|
129
|
+
|
|
130
|
+
Metrics/ModuleLength:
|
|
131
|
+
Enabled: false
|
|
132
|
+
|
|
133
|
+
Metrics/BlockLength:
|
|
134
|
+
Enabled: false
|
|
135
|
+
|
|
136
|
+
Style/FrozenStringLiteralComment:
|
|
137
|
+
Enabled: false
|
|
138
|
+
|
|
139
|
+
Style/SymbolArray:
|
|
140
|
+
Enabled: false
|
|
141
|
+
|
|
142
|
+
Security/MarshalLoad:
|
|
143
|
+
Enabled: false
|
|
144
|
+
|
|
145
|
+
Layout/HeredocIndentation:
|
|
146
|
+
Enabled: false
|
|
147
|
+
|
|
148
|
+
# @todo use safe_load but its a big change
|
|
149
|
+
Security/YAMLLoad:
|
|
150
|
+
Enabled: false
|
|
151
|
+
|
|
152
|
+
Style/SafeNavigation:
|
|
153
|
+
Enabled: false
|
|
154
|
+
|
|
155
|
+
Style/RescueStandardError:
|
|
156
|
+
Enabled: false
|
|
157
|
+
|
|
158
|
+
Style/OptionalBooleanParameter:
|
|
159
|
+
Enabled: false
|
|
160
|
+
|
|
161
|
+
Naming/MemoizedInstanceVariableName:
|
|
162
|
+
Enabled: false
|
data/.ruby-version
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.2.3
|
data/CHANGELOG.md
ADDED
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
|Date |Issue |Description |
|
|
2
|
+
|----------|------|---------------------------------------------------------------------------------------------------------|
|
|
3
|
+
|2024/12/13| |Release 2.27.0 |
|
|
4
|
+
|2026/03/04| |Switch from puppet to openvox gem |
|
|
5
|
+
|2025/07/24|211 |Remove unexpected require from the gemfile |
|
|
6
|
+
|2025/07/24|211 |Get dependencies from the gemfile |
|
|
7
|
+
|2025/07/24|211 |Adjust the gemspec name |
|
|
8
|
+
|2025/03/08|205 |Fix running tasks as another user |
|
|
9
|
+
|2024/12/13| |Release 2.26.5 |
|
|
10
|
+
|2024/12/10|202 |Pass federations properly down from choria playbooks |
|
|
11
|
+
|2024/09/01| |Release 2.26.4 |
|
|
12
|
+
|2024/09/29| |Move to Github Actions |
|
|
13
|
+
|2024/06/26|196 |Fix Slack integration to use POST |
|
|
14
|
+
|2024/02/03| |Allow overriding federation as cli argument and playbook func args |
|
|
15
|
+
|2024/02/03| |Release 2.26.3 |
|
|
16
|
+
|2023/12/18|190 |Allow setting SRV domain using environment variable |
|
|
17
|
+
|2023/10/27|188 |Use named args in ERB.new |
|
|
18
|
+
|2023/10/27|186 |Remove `Thread.kill` |
|
|
19
|
+
|2023/03/22| |Release 2.26.2 |
|
|
20
|
+
|2023/03/22| |Update embedded DDL files |
|
|
21
|
+
|2022/11/07| |Release 2.26.1 |
|
|
22
|
+
|2022/03/15|182 |Report failure with exit code in mco tasks |
|
|
23
|
+
|2021/10/15| |Release 2.26.0 |
|
|
24
|
+
|2022/02/10|179 |Add a `Choria::TaskResult#bolt_task_result` API |
|
|
25
|
+
|2021/10/15| |Release 2.25.3 |
|
|
26
|
+
|2021/10/14|175 |Correctly handle non node discovery terms in batched direct requests |
|
|
27
|
+
|2021/10/05|173 |Correctly process JSON numbers as floats in cases where no decimal points are specified |
|
|
28
|
+
|2021/09/20| |Release 2.25.2 |
|
|
29
|
+
|2021/09/03|169 |Correctly handle non 0 exit code in delegated discovery |
|
|
30
|
+
|2021/08/24| |Release 2.25.1 |
|
|
31
|
+
|2021/08/24| |Update DDL files |
|
|
32
|
+
|2021/08/24| |Release 2.25.0 |
|
|
33
|
+
|2021/07/13|164 |Pass path to active configuration file to choria |
|
|
34
|
+
|2021/07/01|98 |Fix running bolt tasks on Windows |
|
|
35
|
+
|2021/06/29|163 |Only add AIO bin directory to PATH if it exist |
|
|
36
|
+
|2021/06/19| |Release 2.24.4 |
|
|
37
|
+
|2021/06/17|160 |Handle large delegated discovery replies correctly |
|
|
38
|
+
|2021/04/23| |Release 2.24.3 |
|
|
39
|
+
|2021/04/16|155 |Remove Ruby based code generators |
|
|
40
|
+
|2021/04/13|153 |Avoid exceeding the stack when logging setup fails |
|
|
41
|
+
|2021/04/09|151 |Set the environment variable PT__task |
|
|
42
|
+
|2021/04/06|149 |Improve UX for users of choria.use_srv_records |
|
|
43
|
+
|2021/04/01|149 |Align MCollective::Util::Choria options processing with choria |
|
|
44
|
+
|2021/03/29| |Release 2.24.2 |
|
|
45
|
+
|2021/03/18|146 |Drop dependency on win32-dir gem |
|
|
46
|
+
|2021/03/03|142 |Relocate task cache locations to improve multi script support |
|
|
47
|
+
|2020/02/03| |Release 2.24.1 |
|
|
48
|
+
|2020/02/03|137 |Remove further data related files |
|
|
49
|
+
|2020/02/03| |Release 2.24.0 |
|
|
50
|
+
|2020/02/02|137 |Remove legacy Data plugins |
|
|
51
|
+
|2020/01/29|133 |Delegate all discovery methods to the choria binary |
|
|
52
|
+
|2020/01/22|130 |Support project based configuration files |
|
|
53
|
+
|2020/01/20|127 |Improve rendering of packaged plugin README documents |
|
|
54
|
+
|2020/01/12| |Release 2.23.3 |
|
|
55
|
+
|2020/01/12|120 |Retire `mco facts` and redirect to `choria facts` |
|
|
56
|
+
|2020/01/12| |Release 2.23.2 |
|
|
57
|
+
|2020/01/12|117 |Improve handling of user configuration paths |
|
|
58
|
+
|2020/01/12| |Release 2.23.1 |
|
|
59
|
+
|2020/01/10|114 |Support `expr` filters and retire old filter logic |
|
|
60
|
+
|2020/01/05|83 |Restore `mco ping` to being ruby based as a tool for low level testing of the client |
|
|
61
|
+
|2020/12/29| |Allow tasks to be run as another user |
|
|
62
|
+
|2020/12/30|92 |Remove the ability to enroll Puppet CA, use `choria enroll` |
|
|
63
|
+
|2020/12/29| |Release 2.23.0 |
|
|
64
|
+
|2020/12/27|85 |update `mco choria` to `choria rpc` |
|
|
65
|
+
|2020/12/26|83 |Update `mco ping` to call `choria ping` |
|
|
66
|
+
|2020/12/26|83 |Support calling an external binary - like choria - for application plugins |
|
|
67
|
+
|2020/12/15|63 |Use `choria` in paths for Windows file locations |
|
|
68
|
+
|2020/12/15|75 |Do not raise issues for unsupport config options when parsing server config |
|
|
69
|
+
|2020/11/25| |Release 2.22.1 |
|
|
70
|
+
|2020/10/22|72 |Do not parse registration related settings |
|
|
71
|
+
|2020/07/07| |Release 2.22.0 |
|
|
72
|
+
|2020/07/21|69 |Add FreeBSD support |
|
|
73
|
+
|2020/07/07| |Release 2.21.1 |
|
|
74
|
+
|2020/05/11|65 |Fix facts application when querying non-string facts |
|
|
75
|
+
|2020/01/21| |Release 2.21.0 |
|
|
76
|
+
|2019/10/01|50 |Fix executable names when building modules of external agents |
|
|
77
|
+
|2020/01/20|60 |Support :hash DDL validations |
|
|
78
|
+
|2020/01/09|58 |Support :array DDL validations |
|
|
79
|
+
|2019/11/26| |Release 2.20.8 |
|
|
80
|
+
|2019/11/03|52 |Improve handling `--version` in applications |
|
|
81
|
+
|2019/09/19| |Release 2.20.7 |
|
|
82
|
+
|2019/09/25|46 |Ensure a valid version of PDK is available when building packages |
|
|
83
|
+
|2019/09/25|43 |Ensure external agents are executable |
|
|
84
|
+
|2019/09/25|40 |Only generate JSON DDls when they do not already exist |
|
|
85
|
+
|2019/09/25|39 |Avoid duplicate resources for packaged plugins wrt to JSON DDL files |
|
|
86
|
+
|2019/09/19| |Release 2.20.6 |
|
|
87
|
+
|2019/09/18|30 |Move the aiomodule package into this module, retire others |
|
|
88
|
+
|2019/09/08|34 |Add support for type in outputs |
|
|
89
|
+
|2019/08/19|31 |Check client_activated property when loading DDLs |
|
|
90
|
+
|2019/03/04| |Release 2.20.5 |
|
|
91
|
+
|2019/02/28|22 |Fix fact summaries for complex data types |
|
|
92
|
+
|2018/11/30| |Release 2.20.4 |
|
|
93
|
+
|2018/12/18|19 |Support ~/.choriarc and /etc/choria/client.conf |
|
|
94
|
+
|2018/11/30| |Release 2.20.3 |
|
|
95
|
+
|2018/11/30|13 |Restore `rpcutil.ddl` |
|
|
96
|
+
|2018/11/22| |Release 2.20.2 |
|
|
97
|
+
|2018/11/22|10 |Include the `nats-pure` dependency that choria needs |
|
|
98
|
+
|2018/11/22| |Release 2.20.1 |
|
|
99
|
+
|2018/11/22|7 |Do not require the `json` gem which can only be built as a native extension requiring compilers |
|
|
100
|
+
|2018/11/07| |Release 2.20.0 |
|
|
101
|
+
|2018/11/03|1 |Create a minimal gem that removes a lot of the unused parts of MCollective |
|
data/CODE_OF_CONDUCT.md
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
|
2
|
+
|
|
3
|
+
## Our Pledge
|
|
4
|
+
|
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
|
10
|
+
orientation.
|
|
11
|
+
|
|
12
|
+
## Our Standards
|
|
13
|
+
|
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
|
15
|
+
include:
|
|
16
|
+
|
|
17
|
+
* Using welcoming and inclusive language
|
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
|
19
|
+
* Gracefully accepting constructive criticism
|
|
20
|
+
* Focusing on what is best for the community
|
|
21
|
+
* Showing empathy towards other community members
|
|
22
|
+
|
|
23
|
+
Examples of unacceptable behavior by participants include:
|
|
24
|
+
|
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
|
26
|
+
advances
|
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
|
28
|
+
* Public or private harassment
|
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
|
30
|
+
address, without explicit permission
|
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
|
32
|
+
professional setting
|
|
33
|
+
|
|
34
|
+
## Our Responsibilities
|
|
35
|
+
|
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
|
38
|
+
response to any instances of unacceptable behavior.
|
|
39
|
+
|
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
|
44
|
+
threatening, offensive, or harmful.
|
|
45
|
+
|
|
46
|
+
## Scope
|
|
47
|
+
|
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
|
49
|
+
when an individual is representing the project or its community. Examples of
|
|
50
|
+
representing a project or community include using an official project e-mail
|
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
|
53
|
+
further defined and clarified by project maintainers.
|
|
54
|
+
|
|
55
|
+
## Enforcement
|
|
56
|
+
|
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
|
58
|
+
reported by contacting the project team at rip@devco.net. All
|
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
|
63
|
+
|
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
|
66
|
+
members of the project's leadership.
|
|
67
|
+
|
|
68
|
+
## Attribution
|
|
69
|
+
|
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
|
72
|
+
|
|
73
|
+
[homepage]: http://contributor-covenant.org
|
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/CONTRIBUTING.md
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# How to contribute
|
|
2
|
+
|
|
3
|
+
This project relies on your contributions for it's continued success. We want to make the process as easy as possible but a few guidelines are needed.
|
|
4
|
+
|
|
5
|
+
First please note that participation is bound by our [Code Of Conduct](CODE_OF_CONDUCT.md).
|
|
6
|
+
|
|
7
|
+
# Issues
|
|
8
|
+
|
|
9
|
+
We do not have strong guidelines on what you put in an issue, we'll gladly work with you to gather the information we require. We do ask that you try to put as much detail as possible to help everyone use their time in a meaningful way.
|
|
10
|
+
|
|
11
|
+
# PRs
|
|
12
|
+
|
|
13
|
+
Almost every PR will need an issue first. You do not need issues for trivial updates like typos, most documentation updates etc. But if you're doing a PR that adjusts behavior we will need a issue to go with it.
|
|
14
|
+
|
|
15
|
+
Once you have an issue note the number and once you are ready to send your PR please squash your commits then make a single commit with something like the following format:
|
|
16
|
+
|
|
17
|
+
```
|
|
18
|
+
(#123) Add a super awesome feature
|
|
19
|
+
|
|
20
|
+
This adds a new super awesome feature that everyone would love,
|
|
21
|
+
it can be used for such and such.
|
|
22
|
+
|
|
23
|
+
To deliver this feature we had to extend, this that and the other
|
|
24
|
+
with new behaviours
|
|
25
|
+
|
|
26
|
+
Backwards compatibility is kept
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Please see [How to Write a Git Commit Message](https://chris.beams.io/posts/git-commit/) for excellent coverage of the topic of commit messages. We don't require things to be as detailed or strict as that but it's a great resource to keep in mind.
|
|
30
|
+
|
|
31
|
+
Short updates obviously do not need all this, very often I am happy with just a 1 line commit message that matches the first line above.
|
|
32
|
+
|
|
33
|
+
For trivial updates without issues and where context is not needed:
|
|
34
|
+
|
|
35
|
+
```
|
|
36
|
+
(misc) Fix typo in README.md
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
# Finding others in the community
|
|
40
|
+
|
|
41
|
+
Usually we like to keep discussions on issues where they relate but of course we are very happy to chat in a more real time manner, especially useful if you want to find out our thoughts on your proposed changes ahead of spending your valuable time on them:
|
|
42
|
+
|
|
43
|
+
* [Mailing List](https://groups.google.com/forum/#!forum/choria-users)
|
|
44
|
+
* [#choria on the Puppet Slack](http://slack.puppet.com/)
|
|
45
|
+
* #mcollective on Freenode
|
data/Gemfile
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
source ENV["GEM_SOURCE"] || "https://rubygems.org"
|
|
2
|
+
|
|
3
|
+
# Specify your gem's dependencies in choria-mcorpc-support.gemspec
|
|
4
|
+
gemspec
|
|
5
|
+
|
|
6
|
+
group :development, :test do
|
|
7
|
+
gem "diplomat", "~> 2"
|
|
8
|
+
gem "etcdv3"
|
|
9
|
+
gem "jgrep", ">= 1.5.0"
|
|
10
|
+
gem "json-schema-rspec"
|
|
11
|
+
gem "listen", "~> 3"
|
|
12
|
+
gem "mcollective-test"
|
|
13
|
+
gem "mocha", "~> 0.12.2"
|
|
14
|
+
gem "openvox", "~> 8"
|
|
15
|
+
gem "rake", ">= 12.3.3"
|
|
16
|
+
gem "rdoc"
|
|
17
|
+
gem "rspec", "~> 3.9.0"
|
|
18
|
+
gem "rubocop", "1.6.1"
|
|
19
|
+
gem "semantic_puppet"
|
|
20
|
+
gem "webmock"
|
|
21
|
+
gem "yard"
|
|
22
|
+
gem "google-protobuf", "~> 3.25.0"
|
|
23
|
+
end
|
data/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
data/NOTICE
ADDED
data/README.md
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Choria MCollective RPC Ruby Support Libraries
|
|
2
|
+
|
|
3
|
+
These are stripped down versions of the [legacy Marionette Collective libraries](https://github.com/choria-legacy/marionette-collective) that
|
|
4
|
+
are used to facilitate hosting Ruby based MCollective Agents within the
|
|
5
|
+
Golang daemon as well as interact with a Choria network from the Ruby API
|
|
6
|
+
and `mco` CLI
|
|
7
|
+
|
|
8
|
+
It's not possible to run the old MCollective daemon using this code or the
|
|
9
|
+
resulting gem.
|
|
10
|
+
|
|
11
|
+
This fork was made off version `2.12.0` of The Marionette Collective and have
|
|
12
|
+
diverged since then, the changes made are not compatible with legacy MCollective.
|
|
13
|
+
|
|
14
|
+
For further information please see [https://choria.io](https://choria.io/)
|
data/Rakefile
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
require "rubygems"
|
|
2
|
+
require "rubygems/package_task"
|
|
3
|
+
|
|
4
|
+
spec = Gem::Specification.load('choria-mcorpc-support.gemspec')
|
|
5
|
+
|
|
6
|
+
Gem::PackageTask.new(spec) do |pkg|
|
|
7
|
+
pkg.need_tar = false
|
|
8
|
+
pkg.need_zip = false
|
|
9
|
+
pkg.package_dir = "build"
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
desc "Run spec tests"
|
|
13
|
+
task :test do
|
|
14
|
+
sh "bundle exec rubocop --config .rubocop.yml lib"
|
|
15
|
+
sh "bundle exec rspec"
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
desc "Update JSON DDL files"
|
|
19
|
+
task :update_ddl do
|
|
20
|
+
require "mcollective"
|
|
21
|
+
|
|
22
|
+
["choria_util", "rpcutil", "scout"].each do |ddl|
|
|
23
|
+
["ddl", "json"].each do |ext|
|
|
24
|
+
fname = "%s.%s" % [ddl, ext]
|
|
25
|
+
outfile = File.join("lib/mcollective/agent", fname)
|
|
26
|
+
url = "https://raw.githubusercontent.com/choria-io/go-choria/master/providers/agent/mcorpc/ddl/agent/%s" % fname
|
|
27
|
+
|
|
28
|
+
puts "Updating %s via %s" % [outfile, url]
|
|
29
|
+
system("curl -so %s %s" % [outfile, url])
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
Dir.glob("lib/mcollective/agent/*.ddl") do |ddlfile|
|
|
34
|
+
agent_dir = File.dirname(ddlfile)
|
|
35
|
+
agent_name = File.basename(ddlfile, ".ddl")
|
|
36
|
+
json_file = File.join(agent_dir, "%s.json" % agent_name)
|
|
37
|
+
|
|
38
|
+
next if agent_name =~ /^(choria_util|rpcutil|scout)/
|
|
39
|
+
|
|
40
|
+
ddl = MCollective::DDL.new(agent_name, :agent, false)
|
|
41
|
+
ddl.instance_eval(File.read(ddlfile))
|
|
42
|
+
|
|
43
|
+
data = {
|
|
44
|
+
"$schema" => "https://choria.io/schemas/mcorpc/ddl/v1/agent.json",
|
|
45
|
+
"metadata" => ddl.meta,
|
|
46
|
+
"actions" => []
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
ddl.actions.sort.each do |action|
|
|
50
|
+
data["actions"] << ddl.action_interface(action)
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
puts "Writing JSON DDL in %s" % json_file
|
|
54
|
+
|
|
55
|
+
File.open(json_file, "w") do |jddl|
|
|
56
|
+
jddl.print(JSON.pretty_generate(data))
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
end
|
data/etc/client.cfg.dist
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
main_collective = mcollective
|
|
2
|
+
collectives = mcollective
|
|
3
|
+
libdir = /usr/libexec/mcollective
|
|
4
|
+
logger_type = console
|
|
5
|
+
loglevel = warn
|
|
6
|
+
|
|
7
|
+
# Plugins
|
|
8
|
+
securityprovider = psk
|
|
9
|
+
plugin.psk = unset
|
|
10
|
+
|
|
11
|
+
connector = activemq
|
|
12
|
+
plugin.activemq.pool.size = 1
|
|
13
|
+
plugin.activemq.pool.1.host = stomp1
|
|
14
|
+
plugin.activemq.pool.1.port = 6163
|
|
15
|
+
plugin.activemq.pool.1.user = mcollective
|
|
16
|
+
plugin.activemq.pool.1.password = marionette
|
|
17
|
+
|
|
18
|
+
# Facts
|
|
19
|
+
factsource = yaml
|
|
20
|
+
plugin.yaml = /etc/mcollective/facts.yaml
|
|
21
|
+
|
data/etc/facts.yaml.dist
ADDED
data/etc/server.cfg.dist
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
main_collective = mcollective
|
|
2
|
+
collectives = mcollective
|
|
3
|
+
libdir = /usr/libexec/mcollective
|
|
4
|
+
logfile = /var/log/mcollective.log
|
|
5
|
+
loglevel = info
|
|
6
|
+
daemonize = 1
|
|
7
|
+
|
|
8
|
+
# Plugins
|
|
9
|
+
securityprovider = psk
|
|
10
|
+
plugin.psk = unset
|
|
11
|
+
|
|
12
|
+
connector = activemq
|
|
13
|
+
plugin.activemq.pool.size = 1
|
|
14
|
+
plugin.activemq.pool.1.host = stomp1
|
|
15
|
+
plugin.activemq.pool.1.port = 6163
|
|
16
|
+
plugin.activemq.pool.1.user = mcollective
|
|
17
|
+
plugin.activemq.pool.1.password = marionette
|
|
18
|
+
|
|
19
|
+
# Facts
|
|
20
|
+
factsource = yaml
|
|
21
|
+
plugin.yaml = /etc/mcollective/facts.yaml
|
|
22
|
+
|
data/etc/ssl/PLACEHOLDER
ADDED
|
File without changes
|
|
File without changes
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: choria-mcorpc-support
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.27.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- R.I.Pienaar
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2026-06-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: systemu
|
|
@@ -57,7 +57,23 @@ executables:
|
|
|
57
57
|
extensions: []
|
|
58
58
|
extra_rdoc_files: []
|
|
59
59
|
files:
|
|
60
|
+
- ".rspec"
|
|
61
|
+
- ".rubocop.yml"
|
|
62
|
+
- ".ruby-version"
|
|
63
|
+
- CHANGELOG.md
|
|
64
|
+
- CODE_OF_CONDUCT.md
|
|
65
|
+
- CONTRIBUTING.md
|
|
66
|
+
- Gemfile
|
|
67
|
+
- LICENSE
|
|
68
|
+
- NOTICE
|
|
69
|
+
- README.md
|
|
70
|
+
- Rakefile
|
|
60
71
|
- bin/mco
|
|
72
|
+
- etc/client.cfg.dist
|
|
73
|
+
- etc/facts.yaml.dist
|
|
74
|
+
- etc/server.cfg.dist
|
|
75
|
+
- etc/ssl/PLACEHOLDER
|
|
76
|
+
- etc/ssl/clients/PLACEHOLDER
|
|
61
77
|
- lib/mcollective.rb
|
|
62
78
|
- lib/mcollective/agent.rb
|
|
63
79
|
- lib/mcollective/agent/aaa_signer.ddl
|