Last active
September 14, 2017 18:40
-
-
Save dhollinger/881d396f490cd8b258dbc813c0058731 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'gitlab' | |
Gitlab.configure do |config| | |
config.endpoint = 'https://gitlab.example.com/api/v4' | |
config.private_token = 'TOKEN' | |
config.httparty = { verify: false } | |
end | |
Gitlab.group(20).projects.each do |project| | |
mod "#{project['name']}", | |
:git => "#{project['ssh_url_to_repo']}", | |
:ref => 'master', | |
:install_path => 'hieradata' | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment