//Cloudogu EcoSystem Docs

Use nexus-claim to preconfigure repositories

The preconfigured Nexus repositories can be changed by using nexus-claim. First we have to create a model for our changes, e.g.: sample. We could test our model by using the plan command against a running instance of Nexus (note: do not forget to set credentials):

nexus-claim plan -i nexus3-initial-example.hcl

If the output looks good, we could store our model in the registry. If we want to apply our model only once:

cat mymodel.hcl | etcdctl set /config/nexus/claim/once

Or we could apply our model on every start of nexus:

cat mymodel.hcl | etcdctl set /config/nexus/claim/always