[katello-devel] Fwd: [katello-commits] [katello] 752058 - Could not find value for 'fqdn'

Cliff Perry cperry at redhat.com
Wed Nov 9 16:48:44 UTC 2011


Lukas,
this fix did something weird for me, wrote out 'expression' within
config file.

Feel free to login and poke system.

[root at dhcp77-173 ~]# grep name /etc/pulp/pulp.conf
# server_name: server hostname(protocol defaults to https)
# default_login: default admin username for your pulp server
server_name: expression
name: pulp_database
[root at dhcp77-173 ~]# grep -ir server_name
/usr/share/katello/install/puppet/modules/pulp/
/usr/share/katello/install/puppet/modules/pulp/templates/etc/pulp/pulp.conf.erb:#
server_name: server hostname(protocol defaults to https)
/usr/share/katello/install/puppet/modules/pulp/templates/etc/pulp/pulp.conf.erb:server_name:
<%= defined? fqdn ? hostname : fqdn %>
[root at dhcp77-173 ~]# facter | egrep -i 'hostname|fqdn|dhcp'
fqdn => dhcp77-173.rhndev.redhat.com
hostname => dhcp77-173
[root at dhcp77-173 ~]#

Cliff.


-------- Original Message --------
Subject: [katello-commits] [katello] 752058 - Could not find value for
'fqdn'
Date: Tue,  8 Nov 2011 13:47:44 +0000 (UTC)
From: lzap <lzap at fedoraproject.org>
Reply-To: katello-commits at lists.fedorahosted.org
To: katello-commits at lists.fedorahosted.org

commit 9cd5f97f5bba09c95aa44ee064a2cf8e73149630
Author: Lukas Zapletal <lzap+git at redhat.com>
Date:   Tue Nov 8 14:47:35 2011 +0100

    752058 - Could not find value for 'fqdn'

 .../modules/pulp/templates/etc/pulp/pulp.conf.erb  |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/puppet/modules/pulp/templates/etc/pulp/pulp.conf.erb
b/puppet/modules/pulp/templates/etc/pulp/pulp.conf.erb
index c12bf5a..670de23 100755
--- a/puppet/modules/pulp/templates/etc/pulp/pulp.conf.erb
+++ b/puppet/modules/pulp/templates/etc/pulp/pulp.conf.erb
@@ -8,7 +8,7 @@
 # Highly recommend changing the default_password with "pulp-admin user
update"
 #
 [server]
-server_name: <%= fqdn %>
+server_name: <%= defined? fqdn ? hostname : fqdn %>
 relative_url: /pulp/repos
 key_url: /pulp/gpg
 ks_url: /pulp/ks
_______________________________________________
katello-commits mailing list
katello-commits at lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/katello-commits




More information about the katello-devel mailing list