docs: fix highlighting in code block
This commit is contained in:
@@ -1,30 +1,31 @@
|
|||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
```
|
```nix
|
||||||
inventory.instances = {
|
{
|
||||||
|
inventory.instances = {
|
||||||
# Deploy user alice on all machines. Don't prompt for password (will be
|
# Deploy user alice on all machines. Don't prompt for password (will be
|
||||||
# auto-generated).
|
# auto-generated).
|
||||||
|
user-alice = {
|
||||||
user-alice = {
|
module = {
|
||||||
module = {
|
name = "users";
|
||||||
name = "users";
|
input = "clan";
|
||||||
input = "clan";
|
};
|
||||||
|
roles.default.tags.all = { };
|
||||||
|
roles.default.settings = {
|
||||||
|
user = "alice";
|
||||||
|
prompt = false;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
roles.default.tags.all = { };
|
|
||||||
roles.default.settings = {
|
# Deploy user bob only on his laptop. Prompt for a password.
|
||||||
user = "alice";
|
user-bob = {
|
||||||
prompt = false;
|
module = {
|
||||||
|
name = "users";
|
||||||
|
input = "clan";
|
||||||
|
};
|
||||||
|
roles.default.machines.bobs-laptop = { };
|
||||||
|
roles.default.settings.user = "bob";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
}
|
||||||
# Deploy user bob only on his laptop. Prompt for a password.
|
|
||||||
user-bob = {
|
|
||||||
module = {
|
|
||||||
name = "users";
|
|
||||||
input = "clan";
|
|
||||||
};
|
|
||||||
roles.default.machines.bobs-laptop = { };
|
|
||||||
roles.default.settings.user = "bob";
|
|
||||||
};
|
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user