Skip to content

Commit dac6f1c

Browse files
authored
Merge pull request #3 from Diesel-Net/development
Promotion
2 parents 59530f8 + aecc18e commit dac6f1c

File tree

65 files changed

+1314
-108
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+1314
-108
lines changed

.ansible/ansible.cfg

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[defaults]
2+
3+
stdout_callback = debug
4+
host_key_checking = True
5+
retry_files_enabled = False
6+
7+
# Fixes ansible variable precedence issue: Makes inventory group_vars override playbook group_vars
8+
# https://github.com/ansible/ansible/issues/18154
9+
precedence = all_plugins_play, all_inventory, all_plugins_inventory, groups_plugins_play, groups_inventory, groups_plugins_inventory

.ansible/deploy.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# ansible-playbook .ansible/deploy.yaml -i .ansible/inventory/production/hosts --vault-id ~/.tokens/vault.txt
2+
3+
- hosts: tools
4+
strategy: free
5+
roles:
6+
- common
7+
- setup
8+
- configure_capabilities
9+
- configure_certificates
10+
- configure_ldap_connections
11+
- configure_cleanup_policies
12+
- configure_repositories
13+
- configure_anonymous_access
14+
- configure_active_realms
15+
- configure_privileges
16+
- configure_roles
17+
- configure_users
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# NOTE: Do not name a repo the same name as one of the default repos
2+
3+
default:
4+
5+
repositories:
6+
7+
- format: maven
8+
type: proxy
9+
payload:
10+
name: maven-central
11+
12+
- format: maven
13+
type: group
14+
payload:
15+
name: maven-public
16+
17+
- format: maven
18+
type: hosted
19+
payload:
20+
name: maven-releases
21+
22+
- format: maven
23+
type: hosted
24+
payload:
25+
name: maven-snapshots
26+
27+
- format: nuget
28+
type: group
29+
payload:
30+
name: nuget-group
31+
32+
- format: nuget
33+
type: hosted
34+
payload:
35+
name: nuget-hosted
36+
37+
- format: nuget
38+
type: proxy
39+
payload:
40+
name: nuget.org-proxy

.ansible/group_vars/all/setup.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
clean_install: no # NEVER set this to 'yes' in production
2+
validate_certs: yes
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
active_realms:
2+
3+
- 'NexusAuthenticatingRealm'
4+
- 'NexusAuthorizingRealm'
5+
- 'DefaultRole'
6+
#- 'LdapRealm'
7+
- 'DockerToken'
8+
- 'NpmToken'
9+
- 'NuGetApiKey'
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
anonymous_access:
2+
3+
- realmName: 'NexusAuthorizingRealm'
4+
enabled: true
5+
userId: anonymous
6+
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
capabilities:
2+
3+
- action: capability_Capability
4+
method: create
5+
data:
6+
- id: NX.coreui.model.Capability-3
7+
typeId: defaultrole
8+
notes: 'Grant anonymous access to anyone that can authenticate'
9+
enabled: true
10+
properties:
11+
role: nx-anonymous
12+
type: rpc
13+
tid: 91
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
certificates: []
2+
# - host: '{{ ldap_connections[0]["host"] }}'
3+
# port: '{{ ldap_connections[0]["port"] }}'
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
cleanup_policies:
2+
3+
# pypi example
4+
- name: pypi-cleanup
5+
format: pypi
6+
notes: example cleanup policy
7+
criteriaAssetRegex: "*"
8+
criteriaLastBlobUpdated: "90"
9+
criteriaLastDownloaded: "90"
10+
11+
# docker example
12+
- name: docker-cleanup
13+
format: docker
14+
notes: example cleanup policy
15+
criteriaAssetRegex: "*"
16+
criteriaLastBlobUpdated: "90"
17+
criteriaLastDownloaded: "90"
18+
19+
# npm example
20+
- name: npm-cleanup
21+
format: npm
22+
notes: example cleanup policy
23+
criteriaAssetRegex: "*"
24+
criteriaLastBlobUpdated: "90"
25+
criteriaLastDownloaded: "90"
26+
criteriaReleaseType: "PRERELEASES" # enum RELEASES, PRERELEASES
27+
28+
# nuget example
29+
- name: nuget-cleanup
30+
format: nuget
31+
notes: example cleanup policy
32+
criteriaAssetRegex: "*"
33+
criteriaLastBlobUpdated: "90"
34+
criteriaLastDownloaded: "90"
35+
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ldap_connections: []

0 commit comments

Comments
 (0)