Skip to content

Commit

Permalink
Merge pull request #31 from igalic/core_dep
Browse files Browse the repository at this point in the history
Raise exception on missing augeasproviders_core
  • Loading branch information
domcleal authored Feb 13, 2017
2 parents a8b72a4 + 91710b9 commit df2b662
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 2 deletions.
2 changes: 2 additions & 0 deletions lib/puppet/provider/ssh_config/augeas.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# coding: utf-8
# Alternative Augeas-based providers for Puppet
#
# Copyright (c) 2012 Raphaël Pinson
# Licensed under the Apache License, Version 2.0


raise("Missing augeasproviders_core dependency") if Puppet::Type.type(:augeasprovider).nil?
Puppet::Type.type(:ssh_config).provide(:augeas, :parent => Puppet::Type.type(:augeasprovider).provider(:default)) do
desc "Uses Augeas API to update an ssh_config parameter"

Expand Down
3 changes: 2 additions & 1 deletion lib/puppet/provider/sshd_config/augeas.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# coding: utf-8
# Alternative Augeas-based providers for Puppet
#
# Copyright (c) 2012 Raphaël Pinson
# Licensed under the Apache License, Version 2.0


raise("Missing augeasproviders_core dependency") if Puppet::Type.type(:augeasprovider).nil?
Puppet::Type.type(:sshd_config).provide(:augeas, :parent => Puppet::Type.type(:augeasprovider).provider(:default)) do
desc "Uses Augeas API to update an sshd_config parameter"

Expand Down
3 changes: 2 additions & 1 deletion lib/puppet/provider/sshd_config_match/augeas.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# coding: utf-8
# Alternative Augeas-based providers for Puppet
#
# Copyright (c) 2015 Raphaël Pinson
# Licensed under the Apache License, Version 2.0


raise("Missing augeasproviders_core dependency") if Puppet::Type.type(:augeasprovider).nil?
Puppet::Type.type(:sshd_config_match).provide(:augeas, :parent => Puppet::Type.type(:augeasprovider).provider(:default)) do
desc "Uses Augeas API to update an sshd_config Match group"

Expand Down
2 changes: 2 additions & 0 deletions lib/puppet/provider/sshd_config_subsystem/augeas.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# coding: utf-8
# Alternative Augeas-based providers for Puppet
#
# Copyright (c) 2012 Raphaël Pinson
# Licensed under the Apache License, Version 2.0

raise("Missing augeasproviders_core dependency") if Puppet::Type.type(:augeasprovider).nil?
Puppet::Type.type(:sshd_config_subsystem).provide(:augeas, :parent => Puppet::Type.type(:augeasprovider).provider(:default)) do
desc "Uses Augeas API to update a Subsystem parameter in sshd_config."

Expand Down
2 changes: 2 additions & 0 deletions lib/puppet/provider/sshkey/augeas.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# coding: utf-8
# Alternative Augeas-based providers for Puppet
#
# Copyright (c) 2015 Raphaël Pinson
Expand Down Expand Up @@ -29,6 +30,7 @@ def insync?(is)
end
end

raise("Missing augeasproviders_core dependency") if Puppet::Type.type(:augeasprovider).nil?
Puppet::Type.type(:sshkey).provide(:augeas, :parent => Puppet::Type.type(:augeasprovider).provider(:default)) do
desc "Uses Augeas API to update SSH known_hosts entries"

Expand Down

0 comments on commit df2b662

Please sign in to comment.