Displaying 20 results from an estimated 30000 matches similar to: "Using my own ruby files & configuration data"
2007 Mar 01
0
[RoR],[C.L.R]Generating HTML to help visualize large YAML files
Rails and Ruby People,
I have some data which I want to present to my end-users.
The data is structured as a simple tree-like thing.
I could easily render it as a well structured YAML file.
I''m looking for a class or module which generates elegant looking
HTML from a YAML file.
I''m about to wander around in rubyforge in search of such a utility.
Alert me if you know of
2006 Jun 18
1
plugings for date validations, email address validation & url validations in rails
Hi all,
Is there any standard plugin available for date validations, email address
validation & url validations in rails?
Thanks in advance,
 Medha.
-- 
If not you then who.....
   If not now then when......
-----------------------------------------------------
With Best Regards,
Medha.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2007 Feb 28
2
backgroundrb 0.2.1 not supported on windows platform?
Hi all,
I want to execute certain ruby script periodically in
my rails application running on windows platform.
I wanted to try out backgroundrb, but it seems that
the support for Windows is deprecated with release
0.2.0 of BackgrounDRb.
The latest release is 0.2.1 & the plugin still doesnt
support windows platform. Can anyone throw more light
on this?
Also, can anyone suggest any
2006 Jun 18
1
Problem using "rake db:migrate"
Hi all,
I am facing a problem while using rails "migrate" feature for creating
tables in a database.
Following are the details.
I have 2 applications say "app1" & "app2". I want both of them to use same
database say "testdb".
For "app1", I create 3 models which in turn create 3 migration files with
prefix, 001_, 002_ & 003_. Now I
2012 Nov 28
2
[hiera] Hierarchy modification takes long time to be effective
Hello,
I''ve something strange : 
When I modify my hierarchy in my hiera.yaml, it can take up to several 
hours, for the modification to work.
eg : I create a subdir in my hieradata, move all the concerned files into, 
modify my hiera.yaml 
> from :
> :hierarchy:
>     - %{operatingsystem}
>
to : 
> :hierarchy:
>     - *os/*%{operatingsystem}
>
but the changes
2006 Jun 16
0
[ADV] Ruby / RoR Training Camp, Pune (India)
Hello,
Reevik Technologies Pvt. Ltd. will be conducting a 5-day training camp
on Ruby and Ruby on Rails at Pune,India. Seating is
limited to 15 people. Seat allocation will be strictly on a
first-come-first-serve basis.
 Details below:
Date:          21st June thru 25th June 2006
Time:          9:00 am to 6:00 pm
Place:         SICSR,Pune
Address:     SICSR,Atur Center,Gokhale Cross Road,Model
2012 Dec 21
1
Hiera and 'clientcert' fact not working :(
Morning All
I''m trying to use Hiera with Puppet 3.0 to streamline some of my module 
configuration... 
However I''m having issues using the ''*%{::clientcert}*'' variable as part of 
the hierarchy... 
Currently, my *hiera.yaml* file looks like:
---
:backends:
  - yaml
  - json
:yaml:
  :datadir: /etc/puppet/hieradata
:json:
  :datadir: /etc/puppet/hieradata
2006 Jun 12
3
standard way of downloading & using rails standard plugins
Hi,
I am a newbie to ruby & rails.
Can anybody give me some inputs as to how to download & use standard rails
plugins.
Any help regarding this will be greatly appreciated.
-- 
If not you then who.....
   If not now then when......
-----------------------------------------------------
With Best Regards,
Medha.
-------------- next part --------------
An HTML attachment was scrubbed...
2012 Nov 23
3
how to query yaml file with hiera function.
Hi guys,
i have a hiera.yaml config file like this:
---
:hierarchy:
    - %{env}/%{tmp_module_name}
    - %{env}/%{tmp_module_name}.common
:backends:
    - yaml
:yaml:
    :datadir: ''/etc/puppet/hieradata''
I also have a test/some_module.yaml file like this:
---
db:
    root            : pass
    port            : ''3306''
I am also using the hiera function
2013 Mar 14
5
Help me wrap my head around Yaml/Hiera with erwbgy/system
Trying to figure out the erwbgy/system plugin and just getting stuck.. 
first run it did some changes, but it ignored parameters for ntp and now 
its not refreshing if I update the yaml at all, Im slightly lost at what I 
may be missing :)
 
hiera.yaml
---
:hierarchy:
    - %{certname}
    - %{environment}
    - global
    - %{environment}/common
:backends:
  - yaml
:yaml:
  :datadir:
2013 Sep 16
10
Unable to specify hierarchy for data-in-modules
Hello,
I''m running Puppet agent stand-alone on Windows.
I got data-in-modules working. However, no matter what I put into the 
module hiera.yaml,
I can only override the defaults from common.yaml by osfamily (and not, 
e.g., by environment).
In the setup below the following command outputs:
>puppet apply --binder -e "notice lookup (''my_key'')"
2013 Oct 15
6
hiera_array, structured data and multiple levels of hierarchy
Hi all!  
I''m trying to setup a puppet module for sudo that will write multiple files 
with separate data for each file, all dependent on the hiera hierarchy. 
 Here''s the relevant portion of my hiera.yaml:
> :hierarchy:
>
>   - "datacenter/app/role/node/%{::clientcert}"
>
>   - "datacenter/app/role/%{::server_role}"
>
>   -
2006 Jun 20
4
Newbie Question to Get Rolling on Rails
I''m not sure if this is the right place to ask such questions.  If not, my
apologies and please direct me where such questions are handled.
I am new to RoR and have been following the tutorial in Agile Web Developement
with Rails.  I have successfully gotten RoR up and running on my Mac (OS X
10.4.6) and created a MySQL database.  However, on page 57 of the tutorial, the
command
2012 Jul 20
2
Lookup another node's hiera data - fqdn hierarchy
I''ve begun using Hiera in combination with Foreman, primarily storing data 
that is best left in Array/Hash form.  I''d like to be able to have a 
module, in this case BackupPC, query all the Hiera data for each node where 
the backup directories/databases are stored.  Then use all that information 
on the BackupPC server to generate proper configuration files for each 
2013 Feb 14
0
Really need some help:: Weird Issue with external data look up in puppet 2.6.11
Running puppet 2.6.11 opensource on Red Hat 5.6 client.
I cannot explain this logically but I have a directory structure like so:
/etc/puppet/manifests/hiera/hostgroups/
with directories for each of my application areas like so:
*clickz  core  devel  dns  icross  iswap  itch  puppet  test  ubuntu*
 *What is weird is that if I put anything under the directory named "core", 
the ext
2013 May 08
1
Problem with hiera config
Hi all,
I''m trying to work with hiera database in puppet and i''m having problems 
using %{variables} because they don''t get the values and i don''t know why.
file hiera.yaml:
 cat hiera.yaml
---
:backends: - yaml
           - puppet
:hierarchy:- nodes/%{domain}/%{hostname}
            - os/%{operatingsystem}/%{operatingsystemrelease}
            -
2012 Aug 22
2
Hiera, OSSEC and per-node stuff?
Hi.
I have an interesting use case.
OSSEC is security tool based on server-client architecture. Server 
generates keys for agents, and every agent has different key.
Now I want to distribute these keys via puppet. I''ve come accross hiera 
and installed it, and it works superbly, but how to store per-node key 
in hiera?
This is my idea:
hiera,yaml:
---
:hierarchy:
     -
2012 Nov 20
2
hiera values issue
Hi, I have a puppetmaster - agent architecture. I have a module for the 
vsftpd configuracion in the agents. The configuration of the value 
''max_per_ip'' in the agents may vary. This is a line of the manifest:
$max_per_ip = hiera(''max_per_ip'',10)
I want to specify different values for each agent using hiera. The problem 
is I am only able to specify the
2006 Jan 29
6
Depot example problem on Slackware
Hello.
I''m new to RoR. I run RoR on my Slackware. I follow the depot example 
and have a problem when run the script:
root@localhost:~/work/depot# ruby script/generate scaffold Admin Product
/usr/lib/ruby/1.8/yaml.rb:133:in `load'': syntax error on line 5, col 2: 
`  socket:/var/run/mysql/mysql.sock'' (ArgumentError)
        from /usr/lib/ruby/1.8/yaml.rb:133:in
2012 Oct 24
1
Exclude or disable a class in Hiera (yaml backend)
Hi People,
Let''s imagine a scenario where I have multiple nodes, a very simple 
hierarchy:
 - nodes/%{fqdn}
 - roles/%{role}
 - common
So what I am trying to achieve is for instance a class ''foo'' is always 
included in ''common.yaml'' and all the nodes will have that class included 
by default, but I want a specific node to have that class excluded or