Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-2954

environmentpath only scan for production environment

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Won't Fix
    • Affects Version/s: PUP 3.6.2
    • Fix Version/s: None
    • Component/s: Modules
    • Labels:
    • Environment:

      puppet --version 3.6.2
      CentOS release 6.4 (Final)
      Linux server1 2.6.32-358.el6.x86_64 #1 SMP Fri Feb 22 00:31:26 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

    • Template:

      Description

      Directory environment are configured at "/etc/puppet/environments" but there's only production environment shown when "puppet module list" is run. Is this normal behavior ?

      my puppet.conf at puppet master
      ================
      cat /etc/puppet/puppet.conf

      [main]
      logdir = /var/log/puppet
      rundir = /var/run/puppet
      ssldir = $vardir/ssl
      ## Allow services in the 'puppet' group to access key (Foreman + proxy)
      privatekeydir = $ssldir/private_keys

      { group = service }

      hostprivkey = $privatekeydir/$certname.pem

      { mode = 640 }

      ## Puppet 3.0.x requires this in both [main] and [master] - harmless on agents
      autosign = $confdir/autosign.conf

      { mode = 664 }
      show_diff = false

      environmentpath = /etc/puppet/environments

      [agent]

      classfile = $vardir/classes.txt
      localconfig = $vardir/localconfig
      default_schedules = false
      report = true
      pluginsync = true
      masterport = 8140
      #environment = production
      certname = server1
      server = server1
      listen = false
      splay = false
      runinterval = 1800
      noop = false
      configtimeout = 120

      [master]
      autosign = $confdir/autosign.conf { mode = 664 }

      reports = foreman
      external_nodes = /etc/puppet/node.rb
      node_terminus = exec
      ca = true
      ssldir = /var/lib/puppet/ssl
      certname = server1.truelife.th
      strict_variables = false
      environmentpath = /etc/puppet/environments
      ============================================\

      # tree /etc/puppet/environments/
      /etc/puppet/environments/
      ├── common
      ├── development
      │   ├── environment.conf
      │   ├── manifests
      │   └── modules
      ├── example_env
      │   ├── manifests
      │   ├── modules
      │   └── README.environment
      ├── production
      │   ├── environment.conf
      │   ├── manifests
      │   └── modules
      ├── test
      └── test2
      ├── environment.conf
      ├── manifests
      └── modules
      ============================================

      [root@server1 puppet]# puppet config print environmentpath
      /etc/puppet/environments

      [root@server1 puppet]# puppet config print environment
      production

      [root@server1 puppet]# puppet module list
      /etc/puppet/environments/production/modules (no modules installed)
      /etc/puppet/modules (no modules installed)
      /usr/share/puppet/modules (no modules installed)

        Attachments

          Activity

            People

            Assignee:
            kan55 kan rangsan
            Reporter:
            kan55 kan rangsan
            QA Contact:
            Kurt Wall Kurt Wall
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support