@ansible-flow/assets 1.0.1-rc.1 → 1.0.1-rc.3
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.
- package/README.md +1 -1
- package/package.json +1 -1
- package/samples/edge-baseline.flow.yaml +30 -30
- package/samples/projects.json +1 -1
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Ansible Flow Designer files a host passes by path: the Python probe, the run events callback, the JSON schemas, the contract with Ansible Flow Server and the sample projects.
|
|
4
4
|
|
|
5
|
-
Built from [Ansible Flow Designer](https://github.com/ChistokhinSV/ansible-flow-designer) 1.0.1-rc.
|
|
5
|
+
Built from [Ansible Flow Designer](https://github.com/ChistokhinSV/ansible-flow-designer) 1.0.1-rc.3
|
|
6
6
|
and released with it. The folders are found by path: `import { probeDir, schemaDir, contractDir, samplesDir } from '@ansible-flow/assets'`.
|
|
7
7
|
|
|
8
8
|
What is in the package, which entry points are documented and what may change:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ansible-flow/assets",
|
|
3
|
-
"version": "1.0.1-rc.
|
|
3
|
+
"version": "1.0.1-rc.3",
|
|
4
4
|
"description": "Ansible Flow Designer files a host passes by path: the Python probe, the run events callback, the JSON schemas, the contract with Ansible Flow Server and the sample projects.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://github.com/ChistokhinSV/ansible-flow-designer/blob/main/docs/packages.md",
|
|
@@ -5,7 +5,7 @@ flow:
|
|
|
5
5
|
key: edge-baseline
|
|
6
6
|
name: Edge baseline
|
|
7
7
|
version: 3
|
|
8
|
-
goal: All edge switches at a site get the NTP
|
|
8
|
+
goal: All edge switches at a site get the NTP and AAA baseline, with a backup taken first and automatic
|
|
9
9
|
rollback if validation fails.
|
|
10
10
|
owner: netops
|
|
11
11
|
runtime:
|
|
@@ -29,48 +29,54 @@ nodes:
|
|
|
29
29
|
key: precheck
|
|
30
30
|
type: task
|
|
31
31
|
title: Pre-checks
|
|
32
|
-
status:
|
|
33
|
-
intent:
|
|
32
|
+
status: implemented
|
|
33
|
+
intent: Make each switch's report folder (the sample's switches are simulated with files)
|
|
34
34
|
inputs:
|
|
35
35
|
devices:
|
|
36
36
|
type: host_list
|
|
37
37
|
from: flow.devices
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
38
|
+
impl:
|
|
39
|
+
kind: module
|
|
40
|
+
ref: ansible.builtin.file
|
|
41
|
+
params:
|
|
42
|
+
path: /tmp/edge-baseline/{{ inventory_hostname }}
|
|
43
|
+
state: directory
|
|
44
|
+
mode: '0755'
|
|
45
|
+
keywords:
|
|
46
|
+
check_mode: false
|
|
42
47
|
- id: 01JBNPZX45HY43KWJRP1XPA7Z3
|
|
43
48
|
key: backup-config
|
|
44
49
|
type: task
|
|
45
50
|
title: Backup config
|
|
46
|
-
status:
|
|
47
|
-
intent: Save running config
|
|
51
|
+
status: implemented
|
|
52
|
+
intent: Save the running config (the sample's netops_backup role)
|
|
48
53
|
inputs:
|
|
49
54
|
devices:
|
|
50
55
|
type: host_list
|
|
51
56
|
from: flow.devices
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
57
|
+
impl:
|
|
58
|
+
kind: role
|
|
59
|
+
ref: netops_backup
|
|
60
|
+
params:
|
|
61
|
+
out_dir: /tmp/edge-baseline
|
|
56
62
|
- id: 01JBDJ8FSSZ5AWSH8VHTPRE95B
|
|
57
63
|
key: push-baseline
|
|
58
|
-
type:
|
|
64
|
+
type: task
|
|
59
65
|
title: Push baseline
|
|
60
66
|
status: implemented
|
|
61
|
-
intent: Apply NTP
|
|
67
|
+
intent: Apply the NTP and AAA baseline (the sample's push_baseline role)
|
|
62
68
|
inputs:
|
|
63
69
|
devices:
|
|
64
70
|
type: host_list
|
|
65
|
-
|
|
66
|
-
type: string
|
|
67
|
-
from: backup-config.backup_ref
|
|
68
|
-
outputs:
|
|
69
|
-
change_report:
|
|
70
|
-
type: dict
|
|
71
|
+
from: flow.devices
|
|
71
72
|
impl:
|
|
72
73
|
kind: role
|
|
73
|
-
ref:
|
|
74
|
+
ref: push_baseline
|
|
75
|
+
params:
|
|
76
|
+
out_dir: /tmp/edge-baseline
|
|
77
|
+
ntp_servers:
|
|
78
|
+
- 192.0.2.10
|
|
79
|
+
- 192.0.2.11
|
|
74
80
|
- id: 01JB9EE0ZBGJ09TQM83XSSSS6Y
|
|
75
81
|
key: validate
|
|
76
82
|
type: task
|
|
@@ -80,20 +86,14 @@ nodes:
|
|
|
80
86
|
inputs:
|
|
81
87
|
devices:
|
|
82
88
|
type: host_list
|
|
83
|
-
|
|
84
|
-
type: dict
|
|
85
|
-
from: push-baseline.change_report
|
|
89
|
+
from: flow.devices
|
|
86
90
|
impl: null
|
|
87
91
|
- id: 01JBS3C4DWA7N36096Q14DR9GP
|
|
88
92
|
key: rollback
|
|
89
93
|
type: task
|
|
90
94
|
title: Rollback
|
|
91
|
-
status:
|
|
95
|
+
status: draft
|
|
92
96
|
intent: Restore backup on failed hosts
|
|
93
|
-
inputs:
|
|
94
|
-
backup_ref:
|
|
95
|
-
type: string
|
|
96
|
-
from: backup-config.backup_ref
|
|
97
97
|
impl: null
|
|
98
98
|
- id: 01JBQY77ZXYYK596NGYA1DQ91K
|
|
99
99
|
key: done
|
package/samples/projects.json
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
{
|
|
15
15
|
"key": "edge-baseline",
|
|
16
16
|
"name": "Edge baseline",
|
|
17
|
-
"description": "NTP
|
|
17
|
+
"description": "NTP and AAA baseline for edge switches with a backup first and rollback, and the roles it binds (fictional switches, simulated with files under /tmp/edge-baseline).",
|
|
18
18
|
"files": [
|
|
19
19
|
{ "from": "edge-baseline.flow.yaml", "to": "flows/edge-baseline/edge-baseline.flow.yaml" },
|
|
20
20
|
{ "from": "edge-baseline.scenarios.yaml", "to": "flows/edge-baseline/edge-baseline.scenarios.yaml" },
|