Skip to content

Commit be67aab

Browse files
committed
docs updates
1 parent d77e14f commit be67aab

File tree

7 files changed

+25
-9
lines changed

7 files changed

+25
-9
lines changed

cookiecutter/{{cookiecutter.environment}}/ansible.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ roles_path = ../../ansible/roles
1111
filter_plugins = ../../ansible/filter_plugins
1212

1313
[ssh_connection]
14-
ssh_args = -o ControlMaster=auto -o ControlPath=~/.ssh/%r@%h-%p -o ControlPersist=240s -o PreferredAuthentications=publickey -o UserKnownHostsFile=/dev/null
14+
ssh_args = -o ServerAliveInterval=10 -o ControlMaster=auto -o ControlPath=~/.ssh/%r@%h-%p -o ControlPersist=240s -o PreferredAuthentications=publickey -o UserKnownHostsFile=/dev/null
1515
pipelining = True
1616

1717
[inventory]

cookiecutter/{{cookiecutter.environment}}/tofu/main.tf

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,14 @@ module "cluster" {
88
environment_root = var.environment_root
99

1010
# Environment specific variables
11-
# cluster_name = "foo"
11+
# Note that some of the variables below may need to be moved to the site environment
12+
# defaults e.g cluster_networks should be in site if your staging and prod
13+
# environments use the same networks
14+
cluster_name =
15+
cluster_image_id =
16+
control_node_flavor =
17+
cluster_networks =
18+
key_pair =
19+
login =
20+
compute =
1221
}

docs/production.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,9 @@ and referenced from the `site` and `production` environments, e.g.:
109109
- Configure Open OnDemand - see [specific documentation](openondemand.md) which
110110
notes specific variables required.
111111

112-
- Remove the `demo_user` user from `environments/$ENV/inventory/group_vars/all/basic_users.yml`
112+
- Remove the `demo_user` user from `environments/$ENV/inventory/group_vars/all/basic_users.yml`.
113+
Replace the `hpctests_user` in `environments/$ENV/inventory/group_vars/all/hpctests.yml` with
114+
an appropriately configured user.
113115

114116
- Consider whether having (read-only) access to Grafana without login is OK. If not, remove `grafana_auth_anonymous` in `environments/$ENV/inventory/group_vars/all/grafana.yml`
115117

docs/upgrades.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ All other commands should be run on the Ansible deploy host.
4141
prompts. Generally merge conflicts should only exist where functionality which was added
4242
for your site (not in a hook) has subsequently been merged upstream.
4343

44+
Note that if upgrading from a release prior to v2.3, you will likely have merge conflicts
45+
with existing site OpenTofu configurations in `environments/site/tofu`. Generally
46+
- Changes to `default` values in `environments/site/tofu.variables.tf` should be rejected.
47+
- All other changes to the OpenTofu configuration should be accepted, unless they overwrite
48+
site-specific additional resources.
49+
4450
1. Push this branch and create a PR:
4551

4652
git push
@@ -51,8 +57,9 @@ All other commands should be run on the Ansible deploy host.
5157
backward compatible. Alteration of site-specific configuration will usually only be
5258
necessary to use new functionality or where functionality has been upstreamed as above.
5359
Note that the upstream `environments/site/inventory/groups` file contains all possible
54-
groups which can be used to enable features, check for new groups which have been added in the
55-
latest release and remove any which are unnescessary from the `groups` file in your fork.
60+
groups which can be used to enable features. This will be updated when pulling changes
61+
from the StackHPC repo, and any new groups should be enabled/disable as required for
62+
your site.
5663

5764
Make changes as necessary.
5865

environments/.caas/inventory/group_vars/all/nfs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ caas_nfs_home:
55
nfs_enable:
66
server: "{{ inventory_hostname in groups['control'] }}"
77
clients: "{{ inventory_hostname in groups['cluster'] }}"
8-
nfs_export: "/exports/home" # assumes upstream site TF is being used
8+
nfs_export: "/exports/home" # assumes default site TF is being used
99
nfs_client_mnt_point: "/home"
1010

1111
nfs_configurations: "{{ caas_nfs_home if not cluster_home_manila_share | bool else [] }}"

environments/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ how to provision the infrastructure. This environment should not be edited, exce
3939

4040
Provides the base configuration for all subsequent `cookiecutter` created environments,
4141
including OpenTofu configurations for infrastructure. In general, most local customisations should be made by adding to this environment.
42-
be edited here, unless it is specific to a particular cookiecutter environment, in which case it should be set in
43-
that environment.
4442

4543

4644
## Defining an environment

environments/common/inventory/group_vars/all/nfs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ nfs_configuration_home_volume: # volume-backed home directories
1818
# Don't mount share on control node:
1919
clients: "{{ inventory_hostname in groups['cluster'] and inventory_hostname not in groups['control'] }}"
2020
nfs_server: "{{ nfs_server_default }}"
21-
nfs_export: "/exports/home" # assumes upstream site TF is being used
21+
nfs_export: "/exports/home" # assumes default site TF is being used
2222
nfs_client_mnt_point: "/home"
2323
# prevent tunnelling and setuid binaries:
2424
# NB: this is stackhpc.nfs role defaults but are set here to prevent being

0 commit comments

Comments
 (0)