title: can't use different environment for puppet agent
body: <p>I have an agent/master setup. I have created a new environment in <code>/etc/puppetlabs/code/environments/</code> called <code>master</code>.</p>
  
  <p>The content of <code>environment.conf</code> for the <code>master</code> directory environment is</p>
  
  <pre><code>modulepath = site:modules:$basemodulepath
  manifest = manifests/site.pp
  </code></pre>
  
  <p>and when I try <code>puppet agent -t --environment master</code> I am getting some error</p>
  
  <pre><code>Notice: Local environment: 'master' doesn't match server specified node environment 'production', switching agent to 'production'.
  Info: Retrieving pluginfacts
  Info: Retrieving plugin
  Info: Loading facts
  Info: Caching catalog for node1.localpuppet.com
  Info: Applying configuration version '1490712072'
  Notice: Applied catalog in 0.67 seconds
  </code></pre>
  
  <p>I am new to puppet. What changes do I need?</p>
  
  <p><a href="https://i.stack.imgur.com/dUXpV.jpg" rel="nofollow noreferrer">PE Console Config</a></p>