Project

General

Profile

Actions

Feature #20618

closed

global variables: set the type

Added by Han Boetes over 7 years ago. Updated about 5 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Puppet integration
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

If I set the global variable http_proxy_port to 3142 and use it in the following puppet code:

  class { 'apt':
    proxy => {
      host => $http_proxy,
      port => $http_proxy_port,
      ensure => present,
    }
  }                                                                                                                                                                                    

I get this error: Server Error: Evaluation Error: Error while evaluating a Function Call, assert_type(): expects an Integer value, got String at /etc/puppetlabs/code/modules/apt/manifests/init.pp:75:5 on node

I would like to be able to set the type for global variables. Just like with smart class variables.


Related issues 1 (0 open1 closed)

Is duplicate of Foreman - Feature #4127: Array, Boolean and other types support in "hostgroup parameters"ClosedKavita GaikwadActions
Actions #1

Updated by Ewoud Kohl van Wijngaarden over 6 years ago

  • Tracker changed from Bug to Feature
  • Project changed from Website to Foreman
  • Category set to Puppet integration
Actions #2

Updated by Tomer Brisker about 5 years ago

  • Is duplicate of Feature #4127: Array, Boolean and other types support in "hostgroup parameters" added
Actions #3

Updated by Tomer Brisker about 5 years ago

  • Status changed from New to Resolved

This has been added in 1.22 as part of adding type support to parameters

Actions

Also available in: Atom PDF