Created
April 28, 2023 13:32
-
-
Save bschonec/1cb1a5c417295fa9b73ab05b75bcadea to your computer and use it in GitHub Desktop.
This file contains 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 'puppet/parameter/boolean' | |
require 'puppet_x/gms/type' | |
module Puppet | |
Puppet::Type.newtype(:git_integration) do | |
include PuppetX::GMS::Type | |
@doc = %q{TODO | |
} | |
ensurable do | |
defaultvalues | |
defaultto :present | |
end | |
newparam(:name, :namevar => true) do | |
desc 'A unique title for the key that will be provided to the prefered Git management system. Required.' | |
newvalues(:apple_app_store, :asana, :assembla, :bamboo, :bugzilla, :buildkite, :campfire, :datadog, :'unify-circuit', :pumble, :'webex-teams', :'custom-issue-tracker', :discord, :'drone-ci', :'emails-on-push', :ewm, :confluence, :shimo, :'external-wiki', :github, :'hangouts-chat', :irker, :jira, :'slack-slash-commands', :'mattermost-slash-commands', :packagist, :'pipelines-email', :pivotaltracker, :prometheus, :pushover, :redmine, :slack, :'microsoft-teams', :mattermost, :teamcity, :jenkins, :'jenkins-deprecated', :'mock-ci', :'squash-tm', :youtrack) | |
end | |
case :name | |
when 'hangouts-chat' | |
newparam(:confidential_issues_events, :boolean => true, :parent => Puppet::Parameter::Boolean) do | |
desc 'Enable notifications for confidential issue events.' | |
defaultto false | |
end | |
else | |
raise(Puppet::Error, "'#{name}' is not yet configured.") | |
end |
Author
bschonec
commented
Apr 28, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment