Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

repo variable does not return anything when using groups #395

Closed
etfeet opened this issue Apr 14, 2016 · 4 comments
Closed

repo variable does not return anything when using groups #395

etfeet opened this issue Apr 14, 2016 · 4 comments

Comments

@etfeet
Copy link

etfeet commented Apr 14, 2016

I have a post store script that uploads a tmos binary ucs export to git when there is a config change which depends on the OX_REPO_NAME variable. However, when I setup oxidize to use groups and per group git repositories, I am no longer having the repository returned from the repo name variable.

node=$OX_NODE_NAME
repo=$(echo $OX_REPO_NAME | sed 's/^.*networking///g' | sed 's/.git//g')
commit=$OX_REPO_COMMITREF
echo $(date): node: $node repo: $repo commit: $commit file: $gitbase/$repo/$node.ucs
...

output: 
Wed Apr 13 17:45:05 PDT 2016: node: 1.1.1.1 repo: commit: ca9dff9a3e8700feeb40726c8167bf55acd08cc8 file: /etc/oxidized/git/networking//1.1.1.1.ucs

groups:
  f5:
    username: myuser
    password: mypass

  git:
    user: oxidized
    email: oxidized@example.com
    repo: "/var/opt/gitlab/git-data/repositories/networking/default.git"

  ucs_update:
    type: exec
    events: [post_store]
    cmd: '/bin/bash /etc/oxidized/scripts/f5-ucs.sh'
    async: true
    timeout: 120
@ytti
Copy link
Owner

ytti commented Apr 14, 2016

pong @aakso

@ytti
Copy link
Owner

ytti commented May 5, 2016

repong @aakso

@roedie
Copy link
Contributor

roedie commented May 25, 2016

This is the same issue as #334

@ytti
Copy link
Owner

ytti commented Aug 29, 2016

Closed due to #503

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants