<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Times New Roman; font-size: 12pt; color: #000000'><br><br><hr id="zwchr"><blockquote style="border-left:2px solid rgb(16, 16, 255);margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;">
  
    
  
  
    Hi, <br>
    <br>
    I've changed katello puppet manifest in order to set up the pulp
    secured. It expects katello, candlepin and pulp to be installed on
    one machine (could we so far count on this fact?).<br>
    <br>
    Ohad:<br>
    <br>
    Any comments/recommendations on the change?</blockquote><blockquote style="border-left:2px solid rgb(16, 16, 255);margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><br></blockquote><blockquote style="border-left:2px solid rgb(16, 16, 255);margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;">two minor:</blockquote><blockquote style="border-left:2px solid rgb(16, 16, 255);margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;">1. You should use a variable in the params class instead of a hard coded path for the certs.</blockquote><blockquote style="border-left:2px solid rgb(16, 16, 255);margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;">2. We might consider managing the repo_auth.conf, rather then replacing a oneliner.</blockquote><blockquote style="border-left:2px solid rgb(16, 16, 255);margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><br></blockquote><blockquote style="border-left:2px solid rgb(16, 16, 255);margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;">Thanks,</blockquote><blockquote style="border-left:2px solid rgb(16, 16, 255);margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;">Ohad<br>
    <br>
    -- Ivan<br>
    <br>
    -------- Original Message --------
    <table class="moz-email-headers-table" border="0" cellpadding="0" cellspacing="0">
      <tbody>
        <tr>
          <th align="RIGHT" nowrap="nowrap" valign="BASELINE">Subject: </th>
          <td>[katello-commits] [katello] Set pulp repo secured</td>
        </tr>
        <tr>
          <th align="RIGHT" nowrap="nowrap" valign="BASELINE">Date: </th>
          <td>Tue, 27 Sep 2011 16:07:07 +0000 (UTC)</td>
        </tr>
        <tr>
          <th align="RIGHT" nowrap="nowrap" valign="BASELINE">From: </th>
          <td>Ivan Nečas <a class="moz-txt-link-rfc2396E" href="mailto:inecas@fedoraproject.org" target="_blank"><inecas@fedoraproject.org></a></td>
        </tr>
        <tr>
          <th align="RIGHT" nowrap="nowrap" valign="BASELINE">Reply-To:
          </th>
          <td><a class="moz-txt-link-abbreviated" href="mailto:katello-commits@lists.fedorahosted.org" target="_blank">katello-commits@lists.fedorahosted.org</a></td>
        </tr>
        <tr>
          <th align="RIGHT" nowrap="nowrap" valign="BASELINE">To: </th>
          <td><a class="moz-txt-link-abbreviated" href="mailto:katello-commits@lists.fedorahosted.org" target="_blank">katello-commits@lists.fedorahosted.org</a></td>
        </tr>
      </tbody>
    </table>
    <br>
    <br>
    <pre>commit e37e99cb20d297438ba2c0e2d304282c4e7019b9
Author: Ivan Necas <a class="moz-txt-link-rfc2396E" href="mailto:inecas@redhat.com" target="_blank"><inecas@redhat.com></a>
Date:   Tue Sep 27 18:06:24 2011 +0200

    Set pulp repo secured

 puppet/modules/katello/manifests/config.pp |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/puppet/modules/katello/manifests/config.pp b/puppet/modules/katello/manifests/config.pp
index a16cb31..606a5b8 100644
--- a/puppet/modules/katello/manifests/config.pp
+++ b/puppet/modules/katello/manifests/config.pp
@@ -25,6 +25,17 @@ class katello::config {
     recurse => true;
   }
 
+  file{"/etc/pki/content/pulp-global-repo.ca":
+    ensure => link,
+    target => "/etc/candlepin/certs/candlepin-ca.crt",
+    require  => [Class["candlepin::config"], Class["pulp::config"] ]
+  }
+
+  exec {"set pulp secured repo":
+    command => "/bin/sed -i 's/enabled: false/enabled: true/' /etc/pulp/repo_auth.conf",
+    require  => [Class["candlepin::config"], Class["pulp::config"] ]
+   }
+
   exec {"katello_db_migrate":
     cwd         => $katello::params::katello_dir,
     user        => $katello::params::user,
_______________________________________________
katello-commits mailing list
<a class="moz-txt-link-abbreviated" href="mailto:katello-commits@lists.fedorahosted.org" target="_blank">katello-commits@lists.fedorahosted.org</a>
<a class="moz-txt-link-freetext" href="https://fedorahosted.org/mailman/listinfo/katello-commits" target="_blank">https://fedorahosted.org/mailman/listinfo/katello-commits</a>
</pre>
  

<br>_______________________________________________<br>katello-devel mailing list<br>katello-devel@redhat.com<br>https://www.redhat.com/mailman/listinfo/katello-devel<br></blockquote><br></div></body></html>