Displaying 20 results from an estimated 100000 matches similar to: "import in Ruby DSL"
2011 Mar 23
1
way of importing .pp file or some string that contain class definition in ruby dsl
I''m finding the way to import a file or a class stored in string in
ruby manifest.
I have tried following code to parse the class having packages and
services.
pp = Puppet::Parser::Parser.new("development")
pp.string = "class webhttpd{package { ''httpd'': ensure => installed, }
service { ''httpd'': ensure => running, enable =>
2012 Jul 05
1
Ruby DSL parameterized classes and defaults
I''ve been reading the Docs on this, and its not very clear.
I want to have a parameterized class that takes arrays and objects as
parameters.
I''m using puppet 2.6.16.
I define a hostclass like this:
hostclass :test, :arguments => { :param1 => "blah" } do
end
I call from Puppet DSL:
class {"test":
}
I get this as an error:
err: Could not
2011 Mar 23
1
Ruby DSL: create_resource with exec
Hi! How to create "exec" resource in ruby DSL? Found mention of
create_resource but had no luck in using it =(
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com.
For more
2011 Jan 10
2
Problem with multiple requires in Ruby DSL
I''m loving playing around with the DSL. There are some problems (ie
5237), but now that it''s Ruby, I can fix them! woo!
However, I''m stumped on this one, which may or may not be related to
the DSL. When trying to have a resource have a simple dependency on
two things at once, it simply fails, and I''m stumped as to why. The
error message is:
Parameter
2012 May 22
0
How to define class inheritance with Puppet Ruby DSL
I have a module "Ruby":
# init.pp
class ruby {
package { ''libldap-ruby1.8'':
ensure => ''installed''
}
}
Then I have a manifest written with Ruby-DSL, which should inherit this
module:
# ldap.rb
hostclass ''ruby::ldap'' do
(...)
end
How do I define that *ruby::ldap* inherits *ruby*?
--
You received this message because
2011 Mar 04
3
Puppet dsl
Is the puppet dsl a complete Turing capable language?
As I understand it, the chain is dsl -> compiled thing -> actions.
What language is the compiled thing in? Ruby?
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email
2010 Dec 09
1
Calling class defines in pure ruby DSL
Let''s say I have a define in class ''foo'' called ''foo::bar'':
define foo::bar ($var1, $var2) {
...
}
Then I have a ruby hostclass
hostclass :foo do
...
}
I see I can successfully set the parameters by doing:
environment.known_resource_types.definitions[''foo::bar''].set_arguments :var1 => ''val1'', :var2 =>
2011 May 20
0
PC EU feedback: import should also include subdirectories
http://projects.puppetlabs.com/issues/7604
import "/etc/puppet/manifests/nodes/*"
Should import all manifests in subdirectories as well.
Note that this conflicts with #4732, which proposes that Puppet globs
act more like shell globs.
Please comment on the ticket or reply here, whichever you prefer.
Thanks!
r
P.S. This is in response to feedback from my "Improving the
2011 Aug 11
6
need urgent help with including Ruby DSL class from puppet manifests
Hi,
I have a Ruby class in "nagios" module - it''s located in nagios/
manifests/ssa_nagios_checks.rb
and looks like this
hostclass :ssa_nagios_checks do
...
end
In nagios/manifests/init.pp I have
class nagios::server {
...
include ssa_nagios_checks
...
}
And I get the following error
....
debug: importing ''/etc/puppet/modules/nagios/manifests/
2010 Dec 10
3
Re: [Puppet-dev] Converting to Ruby DSL
On Dec 8, 2010, at 11:09 AM, Ken Barber wrote:
> (cross posting here as I originally posted in puppet-users - I figure the question is more of a dev one then for puppet-users)
>
> Hi everyone,
>
> I''m experimenting with converting some of my live puppet content to
> Ruby DSL and have found a few gaps I wouldn''t mind some advice on. I''m
> not sure
2013 Apr 16
7
puppet-cleaner: makes puppet DSL code comply with a subset of the style guide
FWIW,
I''ve wrote puppet-cleaner to help me make comply thousands of lines of
puppet 2.6 DSL code to puppet 2.7 style guide and expectations. I''m
uploading it to github today for anyone to use.
https://github.com/santana/puppet-cleaner
Externally, you run puppet-clean file.pp and it can transform this:
/*
multiline comment
trailing white space here ->
*/
class
2013 Jan 18
1
F18 import error?
Should I be concerned?
[root@fs1 ~]# cobbler import --name=F18
--path=rsync://mirrors.kernel.org/fedora/releases/18/Fedora/x86_64/os
--arch=x86_64
task started: 2013-01-18_062009_import
task started (id=Media import, time=Fri Jan 18 06:20:09 2013)
Found a redhat compatible signature: Packages
adding distros
creating new distro: F18-x86_64
creating new profile: F18-x86_64
associating repos
2011 Nov 04
2
problem with templates
I am having an issue with templates that I cant quite figure out why
it is having an issue.
I am using ruby dsl to read a template from a database and it keeps
having problems with anything other than <%= var %> type definitions.
I even went as far cutting and pasting from the puppet online
documentation just to see if it were maybe something I goofed. I
pasted below the tested template
2013 Jun 19
1
Ruby Class or other API for controlling puppet/mcollective
HI,
i''m currently trying to develop a task-driven rails-based frontend for some
tasks that puppet/mcollective is doing in the background ( basically some
user-management and some asset queries...).
But i''m currently stuck at finding some puppet/mcollective API classes for
ruby. (you''ll only find results for using ruby within puppet, which is of
course more obvious).
2011 Jul 22
0
Import existing classes to puppet-dashboard
Is there currently a way to import existing puppet modules and classes
into the puppet-dashboard?
If not , will defining them in puppet-dashboard make the nodes aware
of modules already created in puppet?
I found this issue opened on the subject, http://projects.puppetlabs.com/issues/3503,
but did not see anything mentioning this in the 1.2rc1 release notes.
Thanks
- Trey
--
You received this
2012 Oct 13
0
Import loop detected at "/location/to/file"
Hi,
Till now, I used to use pre-commit hook on the client side but now I am
planning to setup the update hook at the server side. While creating
modules, the way we do it here is that there will be many files like
*.pp in the manifest directory but there is one more file named init.pp
that has "import *" & some other stuff that needs to go to every box
written in it. This way,
2011 Jan 10
3
importing classes to the dashboard
Hello,
I would like to know if it is possible to automatically import the
puppet classes to the dashboard in order to manage them from the gui.
I didn''t find exact instructions to make the puppet clients report
directly to the dashboard instead of importing the reports every time
through the command rake RAILS_ENV=production reports:import .
Does anyone has the exact instructions?
Thanks
2012 Feb 29
3
Modifying a FACT Value In a Manifest
In my network every subnets default gateway is X.X.X.1. That router
gateway is always running ntpd which I want to give be default as the ntp
server in every hosts ntp.conf.
Since there is no official "default gateway" fact yet, what I want to be
able to do in my manifest is take the $ipaddress fact and turn it into the
gateway for that subnet.
For example...
IP = 10.1.1.12
GW =
2011 Nov 19
3
When will Puppet officially support Ruby 1.9.2+
Hello everyone,
Ruby 1.8.7 is EOS now. So, when will Puppet become Ruby 1.9.2+
compatible?
I am considering to deploy Puppet on a large hosts of servers. If Ruby
1.9.2 cannot be supported, I have to turn to Chef.
Best regards,
Tetsu
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To post to this group, send email to
2010 Jul 12
13
ANNOUNCE: Puppet 2.6.0 - Release Candidate 2 available!
Welcome back again to the Puppet release cycle with the long-awaited
eleventy times better RC2 release.
The 2.6.0 release is a major feature release and includes a huge variety
of new features, fixes, updates and enhancements. These include the
complete cut-over from XMLRPC to the REST API, numerous language
enhancements, a complete rewrite of the events and reporting system, an
internal Ruby