nwops / puppet-retrospec

The only tool you need to generate puppet code, tests, modules, facts, types, providers, data and everything else.
https://www.retrospec-puppet.com/
GNU Affero General Public License v3.0
137 stars 27 forks source link

given a module schema update the classes and defines with puppet 4 data type syntax #47

Open logicminds opened 8 years ago

logicminds commented 8 years ago

Given a puppet 3 manifest and a module schema:

class gitlab_mirrors(
  String[$gitlab_mirror_user_token,
  $gitlab_url                = 'https://gitlab.com',
  $mirror_list_repo          = 'https://github.com/logicminds/mirror_list',

Update the manifest source so that it uses puppet data types

class gitlab_mirrors(
  String[30] $gitlab_mirror_user_token,
  Pattern[/https?/] $gitlab_url                = 'https://gitlab.com',
  Pattern[/https?/] $mirror_list_repo      = 'https://github.com/logicminds/mirror_list',