similar to: Pls do suggest a simple example for creating a class using manifests

Displaying 20 results from an estimated 2000 matches similar to: "Pls do suggest a simple example for creating a class using manifests"

2013 Mar 13
2
How to add a new line at a particular place in a file..
Hi all, How can i write a puppet code such that..it adds a line of content that i want..at a desired place in a file.. if [ "x$JAVA_OPTS" = "x" ]; then JAVA_OPTS="-Xms64m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000
2013 Mar 20
3
Host name look up failure- unable to generate certificate in agent and transfer that to master for signature.
Hi all, 1)I installed puppet agent in one of the server and i gave the name of the master for which it needs to be connected as puppet. But am unable to connect to the host..the certificate is not present in the master when i searched for it with this command *puppet cert list -all *am getting this error in the master *err: Could not call list: header too long header too long.* ** 2)When
2007 May 01
8
Global Variables?
What is the view of having / not having global variables in Puppet? Facter variables are global in the sense they are defined in every scope (whereas ''normal'' variables are only available within the scope they are defined in). I could simply add a custom fact for my DoesTheServerNeedASerialConsole flag to Facter, but I''m not 100% sure I should be having the client
2013 Jan 22
0
Re: How can i create a class with this....?? Pls help
On Tue, Jan 22, 2013 at 12:30 AM, yarlagadda ramya <rams.15891@gmail.com> wrote: You really want the `puppet-users@googlegroups.com` list for this sort of question; the dev list is about modifying Puppet itself, not about manifest level questions. > I have created two manifests one for moving and other for renaming the moved > file. > > these are the two manifests i wrote. >
2011 Apr 19
1
self-referential representations in S4
I'm trying to do the following: > setClass("MyNode", representation(parent = "MyNode")) [1] "MyNode" Warning message: undefined slot classes in definition of "MyNode": parent(class "MyNode") I scanned the docs, but found nothing. The representation function has no problem, it's the setClass function which gives the warning. What
2007 Apr 13
2
puppet reporting an older version installation
Hello all, I have puppet rpm on internal repository for updating it to servers that don''t have it on their normal repos (Centos, Fedora Core 4 or older...) Then I have this to ensure that puppet is at latest version: package { "puppet": ensure => latest, provider => yum, } I added puppet 0.22.3 to my internal repository and all servers updated to that version,
2009 Sep 18
5
Using variables in virtual resources
Hi. I''ve defined a virtual user "kenneth", and depending on a variable in the node definiton I''d like to add the users to different groups. Consider this example: ###### Code start node "server.example.com" { $server_type = "typeA" realize User[kenneth] } @user {"kenneth": ensure => present, uid => 1000,
2016 Jul 13
2
Host not reachable over UDP
Dear all, I have been successfully running for quite some time a tinc 1.1 network in switch mode. I recently added a new node, that refuses to communicate over UDP. Running "tinc info mynode" from a different box returns: Reachability: directly with TCP It appears that tincd is not listening on UDP port 655 on "mynode". Running "ss -nlptu | grep tincd": tcp
2011 Oct 17
2
[LLVMdev] Variable name from metadata
Hi All,   Can we extract name of variable name from "MDNode" ?   1. Neither temp_MDNode->getName() nor temp_MDNode->getValueName() give me "global_int" which is name of a variable.   2. I tried below ways as well. DIVariable DV(mdnode1); Value *v = mdnode1->getOperand(0);//gives add 0x69   3. I have written below code to reach till variable name.        LLVMIname is
2016 Jul 13
2
Host not reachable over UDP
Have anything to do with firewall locations, meaning home vs work vs public vs lockdown. Probably not it at all. On Jul 13, 2016 3:22 PM, "Etienne Dechamps" <etienne at edechamps.fr> wrote: > That's strange. Can you post a detailed log from the affected node (run > tincd -d5 -D), especially the initialization phase? > > On 13 July 2016 at 16:17, Petr Man <petr
2013 Aug 12
2
Error while starting the node on ESXi hypervisor
Hi, Today I was trying to start a node using libvirt on ESX (esxi-5.1) hypervisor and I got the following error message: *virsh # define /local/myNode/esxdomain.xml* *Domain testNode defined from /local/myNode/esxdomain.xml* *virsh # start testNode* *error: Failed to start domain testNode* *error: internal error: Could not start domain: GenericVmConfigFault - Cannot open the disk
2006 Dec 11
3
request an object
Hello, I use a type i just written that install apache basicaly it is httpd and you provide the version (it is just a wrapper to the packets system) . I wanted to tell another type, the vhosts one that i required that this node defines the httpd type and that the vhosts type is allways called AFTER the httpd type. node ''mynode'' { httpd{ version =>
2016 Jul 14
2
Host not reachable over UDP
You might want to try with https://github.com/gsliepen/tinc/pull/120 - that said, this bug probably doesn't explain everything because tinc is supposed to log a message from setup_vpn_in_socket() anyway, but there's no such message in your log. In addition, I really don't see any way the "Received UDP packet from unknown source" message could be logged if the UDP socket
2007 Mar 30
2
Replacing slot of S4 class in method of S4 class?
Dear all, Assume that I have an S4 class "MyClass" with a slot "myname", which is initialized to: myname="" in method("initialize"): myclass <- new("MyClass", myname="") Assume that class "MyClass" has a method "mymethod": "mymethod.MyClass" <- function(object, myname=character(0), ...) {
2020 May 12
4
S3 method dispatch for methods in local environments
Dear All, In R 3.6.3 (and earlier), method dispatch used to work for methods stored in local environments that are attached to the search path. For example: myfun <- function(y) { out <- list(y=y) class(out) <- "myclass" return(out) } print.myclass <- function(x, ...) print(formatC(x$y, format="f", digits=5)) myfun(1:4) # prints: [1]
2005 Dec 07
1
Dots argument in apply method
Hello everyone, I'm working on a package using S4 classes and methods and I ran into the following "problem" when I tried to create an "apply" method for objects of one of my new classes. I've found a way around the problem but I wonder if I did not paint myself into the corner. I'd like your opinion about that. So I have an object "myObj" of class
2019 Jul 07
3
Possible bug in `class<-` when a class-specific '[[.' method is defined
Hi all ! I noticed a strange behaviour of the function `class<-` when a class-specific '[[.' method is defined. Here below a reproducible example : #-------------------------------------------------------------------. counttt <- 0 `[[.MYCLASS` = function(x, ...) { counttt <<- counttt + 1 # browser() x = NextMethod() return(x) } df <- as.data.frame(matrix(1:20,
2011 Oct 31
1
Question about copying reference objects using the initialize method
Dears, I have a question about copying reference objects using the initialize method. 1) If the latter has no arguments, there is no problem to copy an object. myClass = setRefClass("myClass", fields = list(value = "numeric") ) myClass$methods(initialize = function(...){ ? value <<- 1 ? callSuper(...) }) newObject = myClass$new() newObject$value = 2 copyObject =
2000 Jun 26
2
nargs() inside "[.myclass"
I am writing a function to work with class I am defining. I have a question about using nargs() inside of parentheses function. nargs() shows the same for supplying 1 argument, or no arguments at all. Here is a small example: > "[.myclass"<-function(x,...) print(nargs()-1) > x<-c(1,2,3) > class(x)<-"myclass" > x[] [1] 1 > x[1] [1] 1 > x[1,2] [1] 2
2002 Dec 12
1
improving ts object
Dear all, Currently, a ts object behaves like an array, and it would be very useful to have a similar object, which would behave like a data.frame, i.e. it could be indexed, named, etc. like a data.frame. What would be the most efficient way to construct such an object? I have tried to make one on my own following the directions of class design from "S Programming" (2000) as a