Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Reassign variable. Compare variable with string

Hello! I try Reassign variable

class zabbix_host (
  $server = $zabbix_host::params::server,
) inherits zabbix_host::params {
  $server = $manufacturer == 'OpenStack Foundation' { 'true' => 'proxy2', default => 'proxy1' }
}

I see topic https://ask.puppet.com/question/16820/create_resources-and-hiera_hash-cannot-reassign-variable/ https://ask.puppet.com/question/13242/cannot-reassign-variable/ But i dont understand something

Reassign variable. Compare variable with string

Hello! I try Reassign variable

class zabbix_host (
  $server = $zabbix_host::params::server,
) inherits zabbix_host::params {
  $server = $manufacturer == 'OpenStack Foundation' { 'true' => 'proxy2', default => 'proxy1' }
}

I see topic https://ask.puppet.com/question/16820/create_resources-and-hiera_hash-cannot-reassign-variable/ https://ask.puppet.com/question/16820/create_resources-and-hiera_hash-cannot-reassign-variable/

https://ask.puppet.com/question/13242/cannot-reassign-variable/ But i dont understand something

Reassign variable. Compare variable with string

Hello! I try Reassign variable

class zabbix_host (
  $server = $zabbix_host::params::server,
) inherits zabbix_host::params {
  $server = $manufacturer == 'OpenStack Foundation' { 'true' => 'proxy2', default => 'proxy1' }
}

I see topic https://ask.puppet.com/question/16820/create_resources-and-hiera_hash-cannot-reassign-variable/

https://ask.puppet.com/question/13242/cannot-reassign-variable/ But i dont understand something

How Compare variable with string and Reassign it?

Reassign variable. Compare variable with string

Hello! I try Reassign variable

class zabbix_host (
  $server = $zabbix_host::params::server,
) inherits zabbix_host::params {
  $server = $manufacturer == 'OpenStack Foundation' { 'true' => 'proxy2', default => 'proxy1' }
}

I see topic https://ask.puppet.com/question/16820/create_resources-and-hiera_hash-cannot-reassign-variable/

https://ask.puppet.com/question/13242/cannot-reassign-variable/ But i dont understand something

How Compare variable with string and Reassign it?

I try used check variable class zabbix_host ( ) inherits zabbix_host::params { $server = $manufacturer == 'OpenStack Foundation' { 'true' => 'proxy2', default => $zabbix_host::params::server } <== at line 15 }

And get result Error: Could not parse for environment production: Syntax error at '{'; expected '}' at line 15

Reassign variable. Compare variable with string

Hello! I try Reassign variable

class zabbix_host (
  $server = $zabbix_host::params::server,
) inherits zabbix_host::params {
  $server = $manufacturer == 'OpenStack Foundation' { 'true' => 'proxy2', default => 'proxy1' }
}

I see topic https://ask.puppet.com/question/16820/create_resources-and-hiera_hash-cannot-reassign-variable/

https://ask.puppet.com/question/13242/cannot-reassign-variable/ But i dont understand something

How Compare variable with string and Reassign it?

I try used check variable
    class zabbix_host (
    ) inherits zabbix_host::params {
      $server = $manufacturer == 'OpenStack Foundation' { 'true' => 'proxy2', default => $zabbix_host::params::server } <== at line 15
    }

}

And get result Error: Could not parse for environment production: Syntax error at '{'; expected '}' at line 15

Reassign variable. Compare variable with string

Hello! I try Reassign variable

class zabbix_host (
  $server = $zabbix_host::params::server,
) inherits zabbix_host::params {
  $server = $manufacturer == 'OpenStack Foundation' { 'true' => 'proxy2', default => 'proxy1' }
}

I see topic https://ask.puppet.com/question/16820/create_resources-and-hiera_hash-cannot-reassign-variable/

https://ask.puppet.com/question/13242/cannot-reassign-variable/ But i dont understand something

How Compare variable with string and Reassign it?

I try used check variable class zabbix_host ( ) inherits zabbix_host::params { $server = $manufacturer == 'OpenStack Foundation' { 'true' => 'proxy2', default => $zabbix_host::params::server } <== at line 15 }

}

And get result Error: Could not parse for environment production: Syntax error at '{'; expected '}' at line 15

Reassign variable. Compare variable with string

Hello! I try Reassign variable

class zabbix_host (
  $server = $zabbix_host::params::server,
) inherits zabbix_host::params {
  $server = $manufacturer == 'OpenStack Foundation' { 'true' => 'proxy2', default => 'proxy1' }
}

I see topic https://ask.puppet.com/question/16820/create_resources-and-hiera_hash-cannot-reassign-variable/

https://ask.puppet.com/question/13242/cannot-reassign-variable/ But i dont understand something

How Compare variable with string and Reassign it?

it? I try used check variable variable

    class zabbix_host (
     ) inherits zabbix_host::params {
       $server = $manufacturer == 'OpenStack Foundation' { 'true' => 'proxy2', default => $zabbix_host::params::server } <== at line 15
        }

}

And get result Error: Could not parse for environment production: Syntax error at '{'; expected '}' at line 15