Skip to content

Commit 1500a73

Browse files
authored
Merge pull request #965 from proditis/master
Multiple updates to docs and yml
2 parents 17f5fa4 + cda220b commit 1500a73

File tree

6 files changed

+14
-6
lines changed

6 files changed

+14
-6
lines changed

ansible/Dockerfiles/example/variables.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
---
22
hostname: example
33
fqdn: example.echocity-f.com
4+
ansible_host: 10.0.160.xx # The IP address for the target
5+
DOCKER: localhost # Docker server to start the container
6+
mac: de:ad:be:ef:c0:ff:ee # printf "02:42:%.2x:%.2x:%.2x:%.2x\n" 10 0 160 123
47
rootable: 1 # 0 for no
58
difficulty: 3 # 0-6
69
player_spin: 1 # allow player spins

ansible/Dockerfiles/sanitycheck/variables.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
---
22
hostname: sanitycheck
33
fqdn: sanitycheck
4+
ansible_host: 10.0.160.xx # The IP address for the target
5+
DOCKER: localhost # Docker server to start the container
6+
mac: de:ad:be:ef:c0:ff:ee # printf "02:42:%.2x:%.2x:%.2x:%.2x\n" 10 0 160 123
47
rootable: 0
58
difficulty: 0
69
timer: 0

ansible/playbooks/feed-targets.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@
5555
player_spin: "{{player_spin|default('1')}}"
5656
headshot_spin: "{{headshot_spin|default('1')}}"
5757
writeup_allowed: "{{writeup_allowed|default('1')}}"
58-
description: '{{description}}'
58+
instance_allowed: "{{instance_allowed|default('1')}}"
59+
description: '{{description|default("")}}'
5960
ipoctet: '{{ansible_host}}'
6061
difficulty: "{{difficulty|default('0')}}"
6162
mac: '{{mac}}'
@@ -116,7 +117,7 @@
116117
# ignore_errors: true
117118
tags:
118119
- UI
119-
when: target_id is defined and TargetOndemand is defined
120+
when: target_id is defined and TargetOndemand is defined and ( TargetOndemand != 0 and TargetOndemand != false )
120121
uri:
121122
url: "{{mui.URL}}/index.php?r=restapi/target-ondemand/create&access-token={{TOKEN}}"
122123
validate_certs: false

docs/DOCKER-REGISTRY.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ There are many ways you can do that depending on your network topology and avail
66

77
The following guide will provide instructions on running your own registry.
88

9-
## On VPN gateway
9+
## On VPN gateway (OpenBSD)
1010
The suggested way is to run the docker registry on its own system, however the
1111
next best thing as far as flexibility goes is to run it on your VPN gateway and
1212
limit access to the registry to `dockerd` servers.
@@ -20,6 +20,7 @@ ansible-playbook --connection=local -i 127.0.0.1, runonce/docker-registry.yml
2020
ansible-playbook --connection=local -i 127.0.0.1, runonce/docker-registry.yml -e '@settings.yml'
2121
```
2222

23+
## On own server (OpenBSD)
2324
Alternatively, you can proceed with manual installation by following the steps.
2425

2526
Install the needed packages

docs/ansible/DOCKER-TARGETS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ Feed the data to the backend
116116
ansible-playbook playbooks/feed-targets.yml -i inventories/targets -e '{"mui":{"URL": "http://127.0.0.1:8080"}}'
117117
```
118118

119-
You can also create a `group_vars` for the targets to include all those extra-vars details and not having to type them again
119+
You can also create a file at `inventories/targets/group_vars/all.yml` for the targets to include all those extra-vars details and not having to type them again
120120
```yaml
121121
DOCKER_REGISTRY: "myregistry:5000"
122122
DOCKER_REPOSITORY: "targets"
@@ -146,4 +146,4 @@ This playbook provides a few tags to ease in managing single tasks, such as
146146
These tags can be used to perform a specific task or to skip some ie
147147
```sh
148148
ansible-playbook playbooks/build-squash.yml -i inventories/targets --skip-tags push,rmi
149-
```
149+
```

frontend/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"minimum-stability": "stable",
1313
"require": {
1414
"php": ">=5.4.0 || >=8",
15-
"yiisoft/yii2": "~2.0.45",
15+
"yiisoft/yii2": "2.0.45",
1616
"yiisoft/yii2-bootstrap": "~2.0.0",
1717
"yiisoft/yii2-bootstrap4": "^2.0",
1818
"overals/yii2-whois": "~1.0.0",

0 commit comments

Comments
 (0)