Create a Github access token and set it globally with:
git config --global github.accesstoken your_access_token
You can also set a separate token for each project, if you don't pass --global to git config.
Create a Github access token and set it globally with:
git config --global github.accesstoken your_access_token
You can also set a separate token for each project, if you don't pass --global to git config.
| Exec { 'github-accesstoken': | |
| command => "git config --global github.accesstoken '$github_accesstoken'", | |
| unless => "test `git config --global github.accesstoken` = '$github_accesstoken'", | |
| onlyif => "test -n '$github_accesstoken'", | |
| before => Composer::Exec['composer-install'], | |
| require => Package['git'], | |
| user => 'vagrant', | |
| environment => "HOME=/home/vagrant", | |
| path => "/usr/bin", | |
| } |
| GITHUB_ACCESSTOKEN=`git config github.accesstoken`.strip! | |
| Vagrant.configure("2") do |config| | |
| config.vm.define "foobar" do |foobar| | |
| foobar.vm.provision :puppet do |puppet| | |
| puppet.facter = { | |
| "ssh_username" => "vagrant", | |
| "github_accesstoken" => GITHUB_ACCESSTOKEN, | |
| } | |
| puppet.manifests_path = "puppet/manifests" | |
| puppet.manifest_file = "site.pp" | |
| puppet.options = ["--verbose", "--hiera_config /vagrant/puppet/hiera.yaml", "--parser future"] | |
| end | |
| end | |
| end |