Skip to content

Commit 2ad5168

Browse files
committed
docs: document --password flag in README and site
1 parent 9de3bf3 commit 2ad5168

2 files changed

Lines changed: 18 additions & 1 deletion

File tree

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,15 @@ do-manager droplet create --name c2-node \
231231
--user-data-file ./setup.sh \
232232
--wait
233233

234+
# Create with root password set via cloud-init
235+
do-manager droplet create --name test-01 --region fra1 --password "S3cr3t!" --wait
236+
237+
# Password composes with templates and scripts
238+
do-manager droplet create --name redir-01 --region fra1 \
239+
--template redirector-nginx \
240+
--template-var C2BackendHost=10.20.0.2 \
241+
--password "S3cr3t!" --wait
242+
234243
# Delete
235244
do-manager droplet delete <id> # single
236245
do-manager droplet delete 111 222 333 # multiple in parallel
@@ -270,6 +279,9 @@ do-manager droplet exec --tag c2 -- "systemctl status havoc"
270279
| `--tags` | none | Tags |
271280
| `--user-data` | none | Cloud-init script (inline) |
272281
| `--user-data-file` | none | Path to startup script |
282+
| `--template` | none | Built-in cloud-init template |
283+
| `--template-var` | none | Template variable `KEY=VALUE` (repeatable) |
284+
| `--password` | none | Set root password via cloud-init (composable with `--template` and `--user-data-file`) |
273285
| `--vpc-uuid` | none | Place inside this VPC |
274286
| `--ipv6` | false | Enable IPv6 |
275287
| `--backups` | false | Enable automatic backups |

docs/index.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1318,7 +1318,11 @@ <h3>Create flags</h3>
13181318
<tr><td><code>-i, --image</code></td><td><code>ubuntu-22-04-x64</code></td><td>Image slug</td></tr>
13191319
<tr><td><code>--ssh-keys</code></td><td></td><td>SSH key IDs (comma-separated)</td></tr>
13201320
<tr><td><code>--tags</code></td><td></td><td>Tags (comma-separated)</td></tr>
1321-
<tr><td><code>--user-data</code></td><td></td><td>Cloud-init script content</td></tr>
1321+
<tr><td><code>--user-data</code></td><td></td><td>Cloud-init script content (inline)</td></tr>
1322+
<tr><td><code>--user-data-file</code></td><td></td><td>Path to a cloud-init / bash script file</td></tr>
1323+
<tr><td><code>--template</code></td><td></td><td>Built-in cloud-init template (see <code>template list</code>)</td></tr>
1324+
<tr><td><code>--template-var</code></td><td></td><td>Template variable <code>KEY=VALUE</code> (repeatable)</td></tr>
1325+
<tr><td><code>--password</code></td><td></td><td>Set root password via cloud-init — composable with <code>--template</code> and <code>--user-data-file</code></td></tr>
13221326
<tr><td><code>--ipv6</code></td><td><code>false</code></td><td>Enable IPv6</td></tr>
13231327
<tr><td><code>--backups</code></td><td><code>false</code></td><td>Enable automatic backups</td></tr>
13241328
<tr><td><code>-w, --wait</code></td><td><code>false</code></td><td>Poll until active, then print IP(s)</td></tr>
@@ -1914,6 +1918,7 @@ <h3>Key flags for <code>campaign deploy</code></h3>
19141918
<tr><td><code>--outbound</code></td><td>Firewall outbound rule (repeatable)</td></tr>
19151919
<tr><td><code>--reserve-ips</code></td><td>Reserve and assign a static IP to each Droplet</td></tr>
19161920
<tr><td><code>--user-data-file</code></td><td>Bash / cloud-init script run at first boot</td></tr>
1921+
<tr><td><code>--password</code></td><td>Set root password via cloud-init on all Droplets (composable with templates)</td></tr>
19171922
<tr><td><code>--ssh-keys</code></td><td>SSH key IDs to embed (comma-separated)</td></tr>
19181923
<tr><td><code>--role</code></td><td>Multi-role spec: <code>name:count=N:snapshot=slug:preset=c2:reserve-ips</code> (repeatable, replaces simple flags)</td></tr>
19191924
<tr><td><code>--operator-ip</code></td><td>Restrict SSH in preset firewall rules to this IP only</td></tr>

0 commit comments

Comments
 (0)