Compare commits
10 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| d9374f27f8 | |||
| 0051b97621 | |||
| 9d0aac7423 | |||
| 2d8ec40625 | |||
| 5ebe7f564f | |||
| e4dac0b21f | |||
| e80706d3db | |||
| 814b4e59b4 | |||
| ec3f431b45 | |||
| 1b90f54a6e |
@@ -1,4 +1,4 @@
|
|||||||
---
|
---
|
||||||
classes:
|
classes:
|
||||||
- roles::base
|
- roles::infra::dns::resolver
|
||||||
environment: testing
|
environment: testing
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
---
|
---
|
||||||
classes:
|
classes:
|
||||||
- roles::base
|
- roles::infra::dns::resolver
|
||||||
environment: testing
|
environment: testing
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
---
|
---
|
||||||
classes:
|
classes:
|
||||||
- roles::base
|
- roles::infra::ntpserver
|
||||||
environment: testing
|
environment: testing
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
---
|
---
|
||||||
classes:
|
classes:
|
||||||
- roles::base
|
- roles::infra::ntpserver
|
||||||
environment: testing
|
environment: testing
|
||||||
|
|||||||
@@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
classes:
|
||||||
|
- roles::infra::packagerepo
|
||||||
|
environment: testing
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
classes:
|
||||||
|
- roles::infra::dns::master
|
||||||
|
environment: testing
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
classes:
|
||||||
|
- roles::infra::dns::master
|
||||||
|
environment: testing
|
||||||
@@ -34,11 +34,11 @@ def main():
|
|||||||
|
|
||||||
# Add 'enc_role' parameter with classes data
|
# Add 'enc_role' parameter with classes data
|
||||||
if "classes" in data:
|
if "classes" in data:
|
||||||
data["parameters"]["enc_role"] = data["classes"]
|
data["parameters"]["enc_role"] = data["classes"][:]
|
||||||
|
|
||||||
# Copy the environment to the parameters, if it exists
|
# Copy the environment to the parameters, if it exists
|
||||||
if data.get("environment"):
|
if data.get("environment"):
|
||||||
data["parameters"]["enc_env"] = data["environment"]
|
data["parameters"]["enc_env"] = data["environment"][:]
|
||||||
|
|
||||||
# If the environment is 'testing', remove it
|
# If the environment is 'testing', remove it
|
||||||
if data.get("environment") == "testing":
|
if data.get("environment") == "testing":
|
||||||
|
|||||||
Reference in New Issue
Block a user