Displaying 20 results from an estimated 10000 matches similar to: "Vscrepo and templates"
2011 Nov 18
1
vcstype not checking out specified revision
Hi,
I want to use Vcsrepo type to specify what version gets checked out
under a directory. I found this via:
https://github.com/puppetlabs/puppet-vcsrepo
I used the provide example from README.GIT.markdown in my node definition
vcsrepo { "/tmp/hiera":
ensure => present,
provider => git,
source =>
2012 Nov 19
2
vcsrepo: Could not create repository (non-repository at path)
Hi,
I''m running into a problem using the puppetlabs provided vcsrepo-module. It
keeps giving the same error:
--------------
notice: /Stage[main]//Vcsrepo[/usr/share/test2]/ensure: Creating repository
from latest
err: /Stage[main]//Vcsrepo[/usr/share/test2]/ensure: change from absent to
latest failed: Could not create repository (non-repository at path)
--------------
This is in my
2013 Nov 26
4
how to deal with xml files within Puppet ?
hi there,
I have to create a new server.xml which should be build from at least 3 or
4 another xml files. How could to copy and paste with puppet methods ?
On a command line under Unix I would do cat 1.xml > my_file.xml ; cat 2.xml
>> my_file.xml; cat 3.xml >> my_file.xml.
I have to say, I''m pretty new to puppet and simply have no clue how to
tackle this task ;=(
2004 Jul 13
1
Synatx Error on start with R --no-save < myfile.R
Dear all!
I wrote my R-code with an editor and loaded it with source("my_file.R").
Everything works fine as expected.
When I try to start my code with:
R --no-save < my_file.R
I do get a synatx error half way through. The version is 1.9.0 on a Linux
system. To start it with R --no-save < my_file.R works on some machines but
on some it doesn't.
Are there any rules
2010 Jun 24
2
Vcsrepo module use git with certificate
Has anyone tried using this puppet forge module with a certificate?
(puppetlabs/vcsrepo) Any ideas on how to specify via command line to git
what certificate to use?
The only way that I know to tell git to use a specific certificate is to
use the GIT_SSH env variable and specify a script which calls ssh -i ... $@
Silviu
--
You received this message because you are subscribed to the Google
2015 Aug 25
5
sed question
I am trying to use sed to change a value in a pipe.
------------------- This is the two line script
CHANGE="1234"
cat my_file.txt | sed 's/CANCELID/$CHANGE/' > cancel.txt
-------------------
and the my_file.txt has:
<v1:notificationId>CANCELID</v1:notificationId>
it gets changed to $CHANGE instead of the actual value 1234 .
I tried putting a \ in front
2011 May 24
2
escape characters in shell commands
On a Windows platform I am trying to count the number of lines in a file.
In a DOS window, the following works:
C:\Users\jar>findstr /R /N "^" D:\my_dir\my_file | find /C ":"
5317
(it works with double \\ also)
But in R, I need to make this string up with the file name I get from
file.choose():
filename = file.choose()
#get the number of lines in the file
# first make a
2011 Nov 18
2
Are tildes actually valid in templates or is this a bug?
Hi all,
First off, we''re running Puppet 2.7.6 with Ruby 1.8.7 on CentOS 6.0.
Now, I''m using tildes in a template to prevent newlines from appearing but
ruby/puppet is choking on them.
*/tmp/puppet$ cat test.erb*
Line 1: Line 2 will exist if running on CentOS.
<% if operatingsystem == "CentOS" ~%>
Line 2: Yay, we''re running CentOS.
<% end ~%>
2010 Jul 06
2
%% in templates
Hiya,
I''ve recently updated my svn server so that it checks the syntax of
.erb files, on commit, along with .pp files. While doing this, I ran
across a small but niggling issue and wanted to see if I was just
doing something wrong or if it was a bug.
In my sudoers template file, I have a number of lines that start along
the lines of:
%sup ALL=NOPASSWD: ALL
%mon ALL=NOPASSWD: ALL
2007 Sep 29
1
templates with same name before extension are cached
Hi all,
I was just wondering if this is the intended behavior. Here is my setup:
controller
def index
respond_to do |f|
f.xml { render :xml => true }
f.html { render :layout => :none }
end
end
In my views I have a file for each type
index.herb
index.xerb
The first request I send is cached and interferes with the other one.
For example, if I send an xml request
2011 Sep 11
15
How To Expand an .erb Template Without Doing a Full Puppet Run?
We use puppet to distribute named zone files, like many
of you do. We use git to maintain these files, which are
then pulled by the puppet master machine. These zone files are
actually puppet template .erb files.
The other day, I made a mistake which resulted in some zone
files with syntax errors in them. Puppet faithfully distributed
the erroneous zone files to the name servers, which killed
2013 Feb 04
1
Problem loading hdf5 file
*Hi everyone, I am a new subscriber, so I hope I'm posting in the right way.
I need to load a hdf5 file, so I installed the hdf5 libraries ad the hdf5 R
package; in downloaded a small sample file from the hdf5 website and I
could correctly load it. But when I try to load my file:
*
require(hdf5)
rm(list=ls())
ls()
hdf5load("my_file.h5", verbosity=3)
*I get this error message:
*
2013 Feb 08
2
Problem reading dates from Excel
I'm using the read.xls function from gdata package to read one Excel file,
like the example below:
library(gdata)
my_file <- '/Users/Desktop/Project.xlsx'
valores <- read.xls(my_file)
The problem is: one of the columns at the Excel file holds date information
like 1-Jan-13, 5-Jan-13, 25-Jan-13. At Excel these information are treated
as dates. When I read the file into a
2007 Sep 04
5
Xml templates...
I was looking in using an xml_builder template to do something like:
blee.xerb
xml.blees do
<% for blee in @blees %>
xml.blee = blee.name
<% end %>
end
It looks like the xml_builder template can''t expand the erb tag.
It this not the correct way to expand and xml template ?
Thanks !
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2012 Nov 06
1
how Can make function for selecting the products
HI.
I make this code:
getdata<-function('a','b','c' ,'d','e','f'){
drv <- dbDriver("SQLite")
con<-dbConnect(drv, "sqlite.db")
lt<-dbListTables(con)
myf<-data.frame(NULL)
for (i in 1:length(lt))
{
myfile<-dbReadTable(con,lt[i])
myfile1<-myfile[-c(14:44)]
myfile1$MODEL<-gsub(" ",
2011 Jun 25
3
How to export to pdf in landscape orientation?
Does anybody know how to get a pdf file with landscape orientation?.
pdf(file= 'my_file.pdf' ,onefile=T,paper='A4')
plot(sin, -pi, 2*pi)
dev.off()
Thank's in advance
Juan A. Hernandez
Spain
[[alternative HTML version deleted]]
2008 Jul 08
1
Processing config files as ERB templates
For various reasons it''s very handy for us to process our mongrel cluster configuration files as ERB templates during start up. I found a post from a couple of years ago on this mailing list about possibly adding that feature. But nothing seemed to come of it.
I''d like to submit a request for this feature to be added, but I can''t figure out how to go about it. Is this
2004 Sep 10
2
Proposed change to code that handles output_prefix
On line 734 in src/flac/main.c, ver 1.77, change:
strcat(outfilename, infilename);
to
strcat(outfilename, flac__file_get_basename(infilename));
I did this change because I was calling flac with an input filename with a
path on the front of it, and I wanted the output file to go to a different
location, such as this:
flac --best --output-prefix /usr/share/flac /home/akehurst/tmp/my_file.wav
2006 Sep 01
5
templates and require
Thanks everyone for your quick responses to my questions.
I''m trying to get templates working. I want to pull the template down
from the puppet server, then use it. It looks like the require
parameter is not being enforced when using the content parameter so the
template can''t be found.
This doesn''t work:
file { "/etc/lighttpd/lighttpd.conf" :
2013 Jul 26
1
Enhancement to puppetlabs-vcsrepo
Hello! I was looking at using the puppetlabs-vcsrepo module for a project,
but it seems to be missing a feature I need. Specifically, I need to be
able to do one of the following two things:
svn cat URL > FILENAME
svn export URL
Looking at the code, they do not seem supported. So, after some googling
on modifying providers, I took a stab at it and I added a "export"
parameter.