abrader / abrader-gms

Git management system types and providers for Puppet utilizing Github, Gitlab, Stash APIs
Apache License 2.0
26 stars 32 forks source link

unexpected token #51

Open ghost opened 5 years ago

ghost commented 5 years ago

I'm getting unexpected token and I don't know what's wrong. I did everything as documented but doesn't seem to help. Could you please assist? Full errror below.

Error: /Stage[main]/Profile::Puppet::R10k/Git_webhook[github_post_receive]: Could not evaluate: 751: unexpected token at '<html><body>You are being <a href="https://github.com/login">redirected</a>.</body></html>'
  class { 'r10k::webhook::config':
    enable_ssl      => false,
    protected       => false,
    use_mcollective => false,
  }

  class { 'r10k::webhook':
    use_mcollective => false,
    user            => 'root',
    group           => 'root',
    require         => Class['r10k::webhook::config'],
  }

  git_webhook { 'github-nz_post_receive':
    ensure             => present,
    webhook_url        => "https://${::fqdn}:8088/payload",
    token              => 'TOKEN',
    project_name       => 'myuser/myrepo',
    server_url         => 'https://github.com',
    disable_ssl_verify => true,
    provider           => 'github',
  }