Skip to content

Commit 7f6b560

Browse files
committed
fixed documentation and cleaned up files
1 parent daa8cff commit 7f6b560

5 files changed

Lines changed: 16 additions & 45 deletions

File tree

docs/cluster-config.md

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -99,19 +99,26 @@ On air-gapped systems, Spack is unable to reach its default mirror to fetch pack
9999

100100
`mirrors.yaml` treats source mirrors, buildcaches, and bootstrap mirrors the same, and they may all be included in this file. Spack will search the topmost mirror first and the bottom-most mirror last, and will append the default Spack mirror to the bottom of the list when the Spack mirror config is generated.
101101

102-
If using a buildcache, public and private keys must be provided for signing and verifying packages.
102+
`mirrors.yaml` may include source mirrors, bootstrap mirrors, and buildcaches. Any number of source mirrors can be added, but only one bootstrap mirror and buildcache can be specified. Spack will search the source mirrors in order from first to last, and will append the default Spack mirror to the bottom of the list when the Spack mirror config is generated.
103+
104+
If using a buildcache, a private key must be provided for signing packages. An optional public key may be specified with any type of mirror to verify packages.
103105

104106
```yaml title="mirrors.yaml"
105-
local_filesystem:
107+
bootstrap:
106108
url: file:///home/username/spack-mirror-2014-06-24
107-
site_server:
108-
url: https://example.com/some/web-hosted/directory
109-
buildcache-mirror:
109+
enabled: true
110+
buildcache:
110111
url: https://example.com/some/buildcache/mirror
111-
public_key: ../buildcache-key.public.gpg
112+
enabled: true
112113
private_key: /user-home/.gnupg/private-keys-v1.d/my-private-key.asc
113-
cache: true
114-
bootstrap: true
114+
sourcecache:
115+
mirror1:
116+
url: https://example.com/some/web-hosted/directory
117+
public_key: ../buildcache-key.public.gpg
118+
enabled: true
119+
mirror2:
120+
url: https://example.com/some/other-web-hosted/directory
121+
enabled: true
115122
```
116123

117124
## Site and System Configurations

nohup.out

Lines changed: 0 additions & 21 deletions
This file was deleted.

output.log

Lines changed: 0 additions & 2 deletions
This file was deleted.

requirements.txt

Lines changed: 0 additions & 13 deletions
This file was deleted.

stackinator/schema/mirror.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
}
3838
},
3939
"additionalProperties": false,
40-
"required": ["url"]
40+
"required": ["url", "private_key"]
4141
},
4242
"sourcecache": {
4343
"type": "object",

0 commit comments

Comments
 (0)