Skip to content

Commit

Permalink
Moved to the latest version of Nexus app and role.
Browse files Browse the repository at this point in the history
The old role for this is no longer supported. This is the active fork of
it, though. See here for details:
<savoirfairelinux/ansible-nexus3-oss#36>.
  • Loading branch information
karlmdavis committed Jun 3, 2018
1 parent e2c63c9 commit 5dabd64
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 10 deletions.
7 changes: 2 additions & 5 deletions install_roles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,9 @@
# Installs and configures Java.
- src: geerlingguy.java

# https://galaxy.ansible.com/savoirfairelinux/nexus3-oss/
# https://galaxy.ansible.com/ansible-ThoTeam/nexus3-oss/
# Installs and configures Sonatype's Nexus OSS.
- src: savoirfairelinux.nexus3-oss
# FIXME: Need a new release with the fix from: https://github.com/savoirfairelinux/ansible-nexus3-oss/commit/c91fa75a41d9ac08c30dc828986133cbd54144e7
# Once > v1.7.1 is out, remove the `version` specifier here.
version: master
- src: ansible-ThoTeam.nexus3-oss

# https://github.com/karlmdavis/rcm-ansible-role
# This Ansible role can be used to install and configure RCM (https://github.com/thoughtbot/rcm), a management suite for dotfiles.
Expand Down
8 changes: 6 additions & 2 deletions roles/nexus_server/tasks/install_and_configure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
become: true

- import_role:
name: savoirfairelinux.nexus3-oss
name: ansible-ThoTeam.nexus3-oss
vars:
nexus_version: '3.7.0-04'
nexus_version: '3.12.0-01'
nexus_timezone: 'America/New_York'
nexus_admin_password: "{{ vault_nexus_admin_password }}"
httpd_setup_enable: false
Expand Down Expand Up @@ -88,6 +88,9 @@
- name: apache-snapshots
remote_url: 'https://repository.apache.org/snapshots/'
layout_policy: permissive
- name: jboss
remote_url: 'https://repository.jboss.org/nexus/content/groups/public-jboss/'
layout_policy: strict
nexus_repos_maven_hosted:
- name: madrivercode-releases
version_policy: release
Expand Down Expand Up @@ -122,4 +125,5 @@
- maven-public
- madrivercode-releases
- madrivercode-snapshots
nexus_backup_configure: true
become: true
2 changes: 1 addition & 1 deletion roles/nexus_server/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---

- include_tasks: install_and_configure.yml
- import_tasks: install_and_configure.yml
2 changes: 1 addition & 1 deletion roles/spideroak/files/spideroak-backups.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function error() {
# Trap any errors, calling error() when they're caught.
trap 'error ${LINENO}' ERR

backupTargets=( "/var/fileshares" "/var/vmail" "/var/nexus/backup" "/var/lib/jenkins" "/var/lib/postgresql/backups" )
backupTargets=( "/var/fileshares" "/var/vmail" "/var/nexus-backup" "/var/lib/jenkins" "/var/lib/postgresql/backups" )
for backupTarget in "${backupTargets[@]}"; do
echo "SpiderOak Backup: starting ${backupTarget}..."
/usr/bin/SpiderOakONE --backup=${backupTarget}
Expand Down
2 changes: 1 addition & 1 deletion roles/spideroak/tasks/service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
backup_items:
- /var/fileshares
- /var/vmail
- /var/nexus/backup
- /var/nexus-backup
- /var/lib/jenkins
- /var/lib/postgresql/backups

Expand Down

0 comments on commit 5dabd64

Please sign in to comment.