@ansible-flow/assets 1.0.1-rc.3 → 1.0.1-rc.5

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 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.3
5
+ Built from [Ansible Flow Designer](https://github.com/ChistokhinSV/ansible-flow-designer) 1.0.1-rc.5
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",
3
+ "version": "1.0.1-rc.5",
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",
@@ -1,5 +1,5 @@
1
1
  {
2
- "$comment": "Sample projects (AFD-290): what a new project gets when it starts from a sample, in a project's layout. `from` is a file or folder under samples/, `to` the path in the project (empty: the project's root). Ansible Flow Server reads this from @ansible-flow/assets.",
2
+ "$comment": "Sample projects (AFD-290): what a new project gets when it starts from a sample, in a project's layout. `from` is a file or folder under samples/, `to` the path in the project (empty: the project's root). `launchConfigs` (AFD-322): the launch configurations Ansible Flow Server makes with the project, so its flow runs at once (check mode unless `mode` says real; inputs are never secrets). Ansible Flow Server reads this from @ansible-flow/assets.",
3
3
  "projects": [
4
4
  {
5
5
  "key": "hello",
@@ -9,6 +9,15 @@
9
9
  { "from": "hello.flow.yaml", "to": "flows/hello/hello.flow.yaml" },
10
10
  { "from": "hello.scenarios.yaml", "to": "flows/hello/hello.scenarios.yaml" },
11
11
  { "from": "inventory.ini", "to": "inventory.ini" }
12
+ ],
13
+ "launchConfigs": [
14
+ {
15
+ "name": "Hello on localhost",
16
+ "description": "Says hello from the machine the run is on (the local connection).",
17
+ "flowFile": "flows/hello/hello.flow.yaml",
18
+ "inventory": "inventory.ini",
19
+ "inputs": { "devices": ["localhost"] }
20
+ }
12
21
  ]
13
22
  },
14
23
  {
@@ -19,6 +28,15 @@
19
28
  { "from": "edge-baseline.flow.yaml", "to": "flows/edge-baseline/edge-baseline.flow.yaml" },
20
29
  { "from": "edge-baseline.scenarios.yaml", "to": "flows/edge-baseline/edge-baseline.scenarios.yaml" },
21
30
  { "from": "playbooks/edge-baseline", "to": "" }
31
+ ],
32
+ "launchConfigs": [
33
+ {
34
+ "name": "Edge switches (simulated)",
35
+ "description": "The four fictional switches of inventory.ini; a run writes files under /tmp/edge-baseline instead of configuring devices.",
36
+ "flowFile": "flows/edge-baseline/edge-baseline.flow.yaml",
37
+ "inventory": "inventory.ini",
38
+ "inputs": { "devices": ["edge"], "site": "lab" }
39
+ }
22
40
  ]
23
41
  },
24
42
  {
@@ -28,6 +46,15 @@
28
46
  "files": [
29
47
  { "from": "firewall-upgrade.flow.yaml", "to": "flows/firewall-upgrade/firewall-upgrade.flow.yaml" },
30
48
  { "from": "inventory.ini", "to": "inventory.ini" }
49
+ ],
50
+ "launchConfigs": [
51
+ {
52
+ "name": "Skeleton on localhost",
53
+ "description": "The drafts as a skeleton on localhost: a check run passes the change approval by itself; a real run waits for a decision.",
54
+ "flowFile": "flows/firewall-upgrade/firewall-upgrade.flow.yaml",
55
+ "inventory": "inventory.ini",
56
+ "inputs": { "devices": ["localhost"], "target_version": "7.4.3" }
57
+ }
31
58
  ]
32
59
  }
33
60
  ]