Jira (PUP-5428) Add a query string with environment when requesting catalog (POST call)

2015-10-24 Thread Olivier Hanesse (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Olivier Hanesse updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-5428 
 
 
 
  Add a query string with environment when requesting catalog (POST call)  
 
 
 
 
 
 
 
 
 

Change By:
 
 Olivier Hanesse 
 
 
 
 
 
 
 
 
 
 Hello, When running a Puppet 4 run, every http call to PuppetServer includes a query string with the current  "environment".{quote}GET /puppet/v3/node/test.dc01?environment=productionGET /puppet/v3/file_metadata/modules/concat/concatfragments.rb?environment=production...PUT /puppet/v3/report/test.dc01?environment=production& {quote}All except the POST to get the catalog {quote}POST /puppet/v3/catalog/test.dc01 HTTP/1.1{quote}It makes it hard to load-balance puppet load accross several puppetservers running differents environnments.Using Puppet3.x, the environment was in the uri, so it was easy to loadbalance :{quote}  ProxyPassMatch ^/stable/ balancer://puppetserver timeout=600 RequestHeader set X-Client-DN "CN=%{SSL_CLIENT_S_DN_CN}e"   ProxyPassReverse balancer://puppetserver  {quote}Using Puppet4, I am using ModRewrite : {quote}  RewriteCond  \  %{QUERY_STRING} ^(.*)environment=production(.*)$  RewriteRule ^(.*) balancer://puppetserver$1 [P]{quote}It works well, except for the POST Catalog call.Is it possible to add also add a query string to this specific call ? RegardsOlivier   
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.11#64026-sha1:78f6ec4) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this g

Jira (PUP-5428) Add a query string with environment when requesting catalog (POST call)

2015-10-24 Thread Olivier Hanesse (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Olivier Hanesse created an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-5428 
 
 
 
  Add a query string with environment when requesting catalog (POST call)  
 
 
 
 
 
 
 
 
 

Issue Type:
 
  Bug 
 
 
 

Affects Versions:
 

 PUP 4.2.2, PUP 4.2.1, PUP 4.2.0, PUP 4.1.0, PUP 4.0.0 
 
 
 

Assignee:
 

 Unassigned 
 
 
 

Created:
 

 2015/10/24 2:14 AM 
 
 
 

Environment:
 
 
Puppet 4.x agent 
 
 
 

Priority:
 
  Normal 
 
 
 

Reporter:
 
 Olivier Hanesse 
 
 
 
 
 
 
 
 
 
 
Hello,  
When running a Puppet 4 run, every http call to PuppetServer includes a query string with the current "environment". 
 
GET /puppet/v3/node/test.dc01?environment=production GET /puppet/v3/file_metadata/modules/concat/concatfragments.rb?environment=production... PUT /puppet/v3/report/test.dc01?environment=production&  
 
All except the POST to get the catalog  
 
POST /puppet/v3/catalog/test.dc01 HTTP/1.1
 
It makes it hard to load-balance puppet load accross several puppetservers running differents environnments. 
Using Puppet3.x, the envir

Jira (PUP-5428) Add a query string with environment when requesting catalog (POST call)

2015-10-24 Thread Olivier Hanesse (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Olivier Hanesse updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-5428 
 
 
 
  Add a query string with environment when requesting catalog (POST call)  
 
 
 
 
 
 
 
 
 

Change By:
 
 Olivier Hanesse 
 
 
 
 
 
 
 
 
 
 Hello, When running a Puppet 4 run, every http call to PuppetServer includes a query string with the current  "environment".{quote}GET /puppet/v3/node/test.dc01?environment=productionGET /puppet/v3/file_metadata/modules/concat/concatfragments.rb?environment=production...PUT /puppet/v3/report/test.dc01?environment=production& {quote}All except the POST to get the catalog {quote}POST /puppet/v3/catalog/test.dc01 HTTP/1.1{quote}It makes it hard to load-balance puppet load accross several puppetservers running differents environnments.Using Puppet3.x, the environment was in the uri, so it was easy to loadbalance :{quote}  ProxyPassMatch ^/stable/ balancer://puppetserver timeout=600 RequestHeader set X-Client-DN "CN=%{SSL_CLIENT_S_DN_CN}e"   ProxyPassReverse balancer://puppetserver  {quote}Using Puppet4, I am using ModRewrite : {quote}  RewriteCond \ \ %{QUERY_STRING} ^(.*)environment=production(.*)$  RewriteRule ^(.*) balancer://puppetserver$1 [P]{quote}It works well, except for the POST Catalog call.Is it possible to add also add a query string to this specific call ? RegardsOlivier   
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.11#64026-sha1:78f6ec4) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this g

Jira (PUP-5428) Add a query string with environment when requesting catalog (POST call)

2015-10-24 Thread Olivier Hanesse (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Olivier Hanesse updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-5428 
 
 
 
  Add a query string with environment when requesting catalog (POST call)  
 
 
 
 
 
 
 
 
 

Change By:
 
 Olivier Hanesse 
 
 
 
 
 
 
 
 
 
 Hello, When running a Puppet 4 run, every http call to PuppetServer includes a query string with the current  "environment".{quote}GET /puppet/v3/node/test.dc01?environment=productionGET /puppet/v3/file_metadata/modules/concat/concatfragments.rb?environment=production...PUT /puppet/v3/report/test.dc01?environment=production& {quote}All except the POST to get the catalog {quote}POST /puppet/v3/catalog/test.dc01 HTTP/1.1{quote}It makes it hard to load-balance puppet load accross several puppetservers running differents environnments.Using Puppet3.x, the environment was in the uri, so it was easy to loadbalance :{ quote code }  ProxyPassMatch ^/stable/ balancer://puppetserver timeout=600 RequestHeader set X-Client-DN "CN=%{SSL_CLIENT_S_DN_CN}e"   ProxyPassReverse balancer://puppetserver  { quote code }Using Puppet4, I am using ModRewrite : {quote}  RewriteCond \\%{QUERY_STRING} ^(.*)environment=production(.*)$  RewriteRule ^(.*) balancer://puppetserver$1 [P]{quote}It works well, except for the POST Catalog call.Is it possible to add also add a query string to this specific call ? RegardsOlivier   
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.11#64026-sha1:78f6ec4) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To po

Jira (PUP-5428) Add a query string with environment when requesting catalog (POST call)

2015-10-24 Thread Olivier Hanesse (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Olivier Hanesse updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-5428 
 
 
 
  Add a query string with environment when requesting catalog (POST call)  
 
 
 
 
 
 
 
 
 

Change By:
 
 Olivier Hanesse 
 
 
 
 
 
 
 
 
 
 Hello, When running a Puppet 4 run, every http call to PuppetServer includes a query string with the current  "environment".{code}GET /puppet/v3/node/test.dc01?environment=productionGET /puppet/v3/file_metadata/modules/concat/concatfragments.rb?environment=production...PUT /puppet/v3/report/test.dc01?environment=production& {code}All except the POST to get the catalog {code}POST /puppet/v3/catalog/test.dc01 HTTP/1.1{code}It makes it hard to load-balance puppet load accross several puppetservers running differents environnments.Using Puppet3.x, the environment was in the uri, so it was easy to loadbalance :{code}  ProxyPassMatch ^/stable/ balancer://puppetserver timeout=600 RequestHeader set X-Client-DN "CN=%{SSL_CLIENT_S_DN_CN}e"   ProxyPassReverse balancer://puppetserver  {code}Using Puppet4, I am using ModRewrite : {code}  RewriteCond  \\ %{QUERY_STRING} ^(.*)environment=production(.*)$  RewriteRule ^(.*) balancer://puppetserver$1 [P]{code}It works well, except for the POST Catalog call.Is it possible to add also add a query string to this specific call ? RegardsOlivier 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.11#64026-sha1:78f6ec4) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send

Jira (PUP-5428) Add a query string with environment when requesting catalog (POST call)

2015-10-24 Thread Olivier Hanesse (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Olivier Hanesse updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-5428 
 
 
 
  Add a query string with environment when requesting catalog (POST call)  
 
 
 
 
 
 
 
 
 

Change By:
 
 Olivier Hanesse 
 
 
 
 
 
 
 
 
 
 Hello, When running a Puppet 4 run, every http call to PuppetServer includes a query string with the current  "environment".{ quote code }GET /puppet/v3/node/test.dc01?environment=productionGET /puppet/v3/file_metadata/modules/concat/concatfragments.rb?environment=production...PUT /puppet/v3/report/test.dc01?environment=production& { quote code }All except the POST to get the catalog { quote code }POST /puppet/v3/catalog/test.dc01 HTTP/1.1{ quote code }It makes it hard to load-balance puppet load accross several puppetservers running differents environnments.Using Puppet3.x, the environment was in the uri, so it was easy to loadbalance :{code}  ProxyPassMatch ^/stable/ balancer://puppetserver timeout=600 RequestHeader set X-Client-DN "CN=%{SSL_CLIENT_S_DN_CN}e"   ProxyPassReverse balancer://puppetserver  {code}Using Puppet4, I am using ModRewrite : { quote code }  RewriteCond \\%{QUERY_STRING} ^(.*)environment=production(.*)$  RewriteRule ^(.*) balancer://puppetserver$1 [P]{ quote code }It works well, except for the POST Catalog call.Is it possible to add also add a query string to this specific call ? RegardsOlivier    
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.11#64026-sha1:78f6ec4) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr