search for: has_weight

Displaying 4 results from an estimated 4 matches for "has_weight".

2012 Jun 20
7
[PATCH] xl: fix sedf parameters checking
...ending on the ones the user provided. Signed-off-by: Dario Faggioli <dario.faggioli@citix.com> diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c --- a/tools/libxl/xl_cmdimpl.c +++ b/tools/libxl/xl_cmdimpl.c @@ -555,6 +555,8 @@ static int sched_params_valid(libxl_doma int has_weight = scp->weight != LIBXL_DOMAIN_SCHED_PARAM_WEIGHT_DEFAULT; int has_period = scp->period != LIBXL_DOMAIN_SCHED_PARAM_PERIOD_DEFAULT; int has_slice = scp->slice != LIBXL_DOMAIN_SCHED_PARAM_SLICE_DEFAULT; + int has_extratime = + scp->extratime != LIBXL_DOMAIN_SCH...
2012 Jul 17
8
How to override $::operatingsystem fact
Hi, I want to introduce "Proxmox" as new value in $::operatingsystem. "Proxmox" is based on Debian, so the normal value is currently "Debian". To change that, I just write a custom fact based on the facter fact "operatingsystem" Facter.add(:operatingsystem) do > ... > setcode do > ... > elsif
2012 Nov 06
19
puppet failing to run
I am getting this error after installing puppet with gem $ gem install puppet Fetching: facter-1.6.14.gem (100%) Fetching: puppet-3.0.1.gem (100%) Successfully installed facter-1.6.14 Successfully installed puppet-3.0.1 2 gems installed Installing ri documentation for facter-1.6.14... Installing ri documentation for puppet-3.0.1... Installing RDoc documentation for facter-1.6.14... Installing
2013 Oct 13
24
exporting custom facts to puppet agents
...c/ > (g_C[:mac] ||= []) << parts[0] > when /_Win$/ > (g_C[:win] ||= []) << parts[0] > else > (g_C[:linux] ||= []) << parts[0] > end > end > end > > Facter.add(:am_running_oss) do > has_weight 100 > if gos.count >= 1 > setcode { gos.keys.join('','') } > else > setcode { ''undefined'' } > end > end > The file is on the PuppetMaster. Hence the custom fact ''am_running_oss'' is not availab...