{"id":19872015,"url":"https://github.com/saltstack-formulas/nexus-formula","last_synced_at":"2025-10-09T20:10:48.278Z","repository":{"id":17504831,"uuid":"20292696","full_name":"saltstack-formulas/nexus-formula","owner":"saltstack-formulas","description":"Provision Sonatype Nexus with Saltstack","archived":false,"fork":false,"pushed_at":"2020-02-20T02:13:11.000Z","size":41,"stargazers_count":6,"open_issues_count":1,"forks_count":19,"subscribers_count":34,"default_branch":"master","last_synced_at":"2025-05-02T09:48:50.463Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/saltstack-formulas.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-05-29T12:16:16.000Z","updated_at":"2025-02-25T11:46:35.000Z","dependencies_parsed_at":"2022-08-02T20:15:33.770Z","dependency_job_id":null,"html_url":"https://github.com/saltstack-formulas/nexus-formula","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/saltstack-formulas/nexus-formula","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saltstack-formulas%2Fnexus-formula","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saltstack-formulas%2Fnexus-formula/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saltstack-formulas%2Fnexus-formula/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saltstack-formulas%2Fnexus-formula/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/saltstack-formulas","download_url":"https://codeload.github.com/saltstack-formulas/nexus-formula/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saltstack-formulas%2Fnexus-formula/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279002017,"owners_count":26083258,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-12T16:14:17.440Z","updated_at":"2025-10-09T20:10:48.258Z","avatar_url":"https://github.com/saltstack-formulas.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nexus OSS Repository Saltstack Formula\nThis Saltstack formula will install Nexus OSS Repository onto any linux (tested with debian jessie, CentOS 5,6,7).\n\n**Requires Nexus Sonatype Version 3 and above.**\n\n# Use\nIn your formula matching sls just add\n```nexus```\n\n# ToDos\n    - Make certificates importable, official CA etc.\n        - Make java keystore replaceable if changes in the pillar occur. delete old one etc.\n    - Obscure password in jetty-https.xml\n    - Make this formula updateable\n        - Set the symlink to the new version\n        - Do not touch the sonatype-work folder\n    - Copylivedata\n        - Problem that after running the copyjob, another salt-call has to be done, so that the configuration files will be created correctly.\n\n# Guide\nQuestions regarding \"how to configure nexus\" take a look at the sonatype documentation website. http://books.sonatype.com/nexus-book/reference3/index.html\n\n## Prerequisites\n1.) Requires Java JRE\n\n2.) Knowledge in Nexus OSS\n\n## States\nThe default state is `nexus` this one will install, configure and creates a systemd entry for nexus.\nThere is also `nexus.v3.copylivedata` which will copy data from another host, to this local system.\n\n### nexus.v3.copylivedata\nNeeds an existing ssh key on the host system.\n\n## Defaults\n1.) HTTPS will be configured and a self signed certificate is going to be created if `applicationportssl` is uncommented.\n\n2.) The passwords for the java keystore is **neither encrypted nor obscured** in the `jetty-https.xml`.\n\n## Recommendations\n1.) Run Nexus OSS behind a reverseproxy. No issues with the self signed certificate will occur.\n\n### Variables\nEvery variable is setable. If nothing is specified in the pillar it will be set via the `defaults.yaml`.\n\n## Pillar Data\nUse the pillar.example, every variable is commented.\n\n## File Structure\nNexus OSS can be installed anywhere on linux. Per default it will be installed onto `/opt` the following directories will be created\n\n`nexus` is a symlink pointing to the installed version. \n\n`nexus-versionnumber` is created while extracting, can be set via `install.path` in pillar\n\n`sonatype-work` is created while extracting, can be set via `install.datapath` in pillar symlink in `install.path` will be created\n\n### Configurationfiles\nThe following file will be created and modified via salt\n\n`jetty-https.xml` used for https activation, stores the password to the java keystore\n\n`nexus.properties` used for https activation, autoredirects, ssl and non ssl ports, and many more\n\n`nexus.rc` used to run nexus as the specified user\n\n`nexus.service` creates a systemctl entry, runs nexus as the specified user\n\n`nexus.vmoptions` used to edit java vm preferences\n\n# Version 2 \n\nFormula to set up and configure a Sonatype Nexus server.\n\n## note\n\n    See the full `Salt Formulas installation and usage instructions\n    \u003chttp://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html\u003e`_.\n\n## Available states\n    contents:\n        local:\n            - ``nexus``\n\nDownloads the tarball in version nexus:version (currently defaults to 3.11.0-01) from sonatype configured as either a pillar or grain. \nThen unpacks the archive into nexus:prefix (defaults to /opt/nexus).\nDepends on the sun-java-formula for its JDK/JRE. Tested with jre1.8.0_172.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaltstack-formulas%2Fnexus-formula","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaltstack-formulas%2Fnexus-formula","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaltstack-formulas%2Fnexus-formula/lists"}