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

Set the deploy key for GIT clone projects #9

Closed
sebas5384 opened this issue Mar 18, 2014 · 0 comments
Closed

Set the deploy key for GIT clone projects #9

sebas5384 opened this issue Mar 18, 2014 · 0 comments

Comments

@sebas5384
Copy link
Owner

This is just a suggestion, just to have a clue of whats expected:

# OS staff: Setting Deploy key.
if is_project_from_git && [[ ! -z $DEPLOY_KEY ]]; then

  juju-log "Write the deploy ssh key."
  echo "$DEPLOY_KEY" > /home/ubuntu/.ssh/deploy_key
  chown ubuntu:ubuntu /home/ubuntu/.ssh/deploy_key
  chmod 400 /home/ubuntu/.ssh/deploy_key

  if [[ ! -f /usr/bin/git-wrapped ]]; then
    wget https://raw2.github.com/sebas5384/utils/master/bin/git.sh
    mv git.sh /usr/bin/git-wrapped
    chmod +x /usr/bin/git-wrapped
  fi

elif [[ -f /home/ubuntu/.ssh/deploy_key ]]; then
  juju-log "Removing ssh deploy key."
  rm /home/ubuntu/.ssh/deploy_key
fi
@sebas5384 sebas5384 added this to the 1.x-alpha1 milestone Mar 18, 2014
@sebas5384 sebas5384 added this to the ansible-0.5 milestone Jun 10, 2014
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

1 participant