Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1067321
  • 博文数量: 186
  • 博客积分: 4939
  • 博客等级: 上校
  • 技术积分: 2075
  • 用 户 组: 普通用户
  • 注册时间: 2010-04-08 17:15
文章分类

全部博文(186)

文章存档

2018年(1)

2017年(3)

2016年(11)

2015年(42)

2014年(21)

2013年(9)

2012年(18)

2011年(46)

2010年(35)

分类: 系统运维

2014-11-13 10:48:08

diff -u $NEW/manifests/init.pp $OLD/manifests/init.pp


 case $productname {
 /PowerEdge R720/:
{
 - $workers=100,
 - $ant_servers=12
 + $workers=100

 }

Its a confusing error message, because the problem is actually in the sbx class that sbx::openvpn inherits.

There are syntax errors in the case productname statement, with commas added after the $workers variables.

The case statement should read
 

    case $productname {
        /PowerEdge R720/: {
            $workers=100
            $ant_servers=12
        }
        /PowerEdge C6105/: {
            # Use a different number to test this setup
            $workers=41
            $ant_servers=6
        }
        default: {
            $workers=40
            $ant_servers=6
        }
    }

/manifests/openvpn.pp
# $Header: //code_SaaS/Branches/BRANCH_2014_4/infrastructure/puppet/modules/sbx/manifests/openvpn.pp#1 $

class sbx::openvpn inherits sbx {
    include monitoring::sbx-vpn
......

}

/manifests/init.pp
# $Header:
# SBX Sandbox server

class sbx {

    include cog::serviceusers
    include monitoring::sbx-wts
    include ::odsdeployer

    case $productname {
        /PowerEdge R720/: {
            $workers=100
            $ant_servers=12
        }
        /PowerEdge C6105/: {
            # Use a different number to test this setup
            $workers=41
            $ant_servers=6
        }
        default: {
            $workers=40
            $ant_servers=6
        }
    }

阅读(1484) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~