This repository has been archived by the owner on Aug 29, 2018. It is now read-only.
forked from mojolingo/puppet-openshift
-
Notifications
You must be signed in to change notification settings - Fork 128
cannot ssh and git clone to the app gear #261
Comments
I cannot reproduce this using the latest version of OSE and the latest puppet module. Can you confirm which version of Origin you have in your local repos and that this problem still happens with version 4.1.1 of the puppet module? We've significantly refactored the DNS management in the puppet module, which includes fixes for infrastructure zones as well. Here's my attempt to reproduce. I've made minimal changes to your example.
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
here [1] is the configuration file I use in ALL-in-one mode. just change the example.com to demo.local, then change the hostname of the server, and run 'puppet apply'
After the deployment is finished, I do the post install task, and use rhc to create an app, then it failed to clone the git repo. I have checked the .ssh folder of gear repo , the authorized_keys file exists. Also the /root/.ssh/id_rsa and id_rsa.pub file is present, but when I clone the git repo or ssh to the app gear, system keep asking for the password. So there must be something wrong. And can someone figure out how to config the domain and dns_infrastructure_zone? in the provided puppet script, this two para cannot be the same. Or else, will throw exception like:
Error: Cannot alias File[named infrastructure key] to ["/var/named/openshift.local.key"] at /etc/puppet/modules/openshift_origin/manifests/nameserver.pp:112; resource ["File", "/var/named/openshift.local.key"] already declared at /etc/puppet/modules/openshift_origin/manifests/nameserver.pp:82
[2] is my pp file in puppet.
[1] http://openshift.github.io/documentation/oo_deployment_guide_puppet.html#all-in-one
[2] puppet configuration file:
class { 'openshift_origin' :
roles => ['msgserver','datastore','nameserver','broker','node'],
Hostname values (all identical)
broker_hostname => 'broker.demo.local',
datastore_hostname => 'broker.demo.local',
msgserver_hostname => 'broker.demo.local',
nameserver_hostname => 'broker.demo.local',
node_hostname => 'broker.demo.local',
IP address values (all identical)
broker_ip_addr => '192.168.142.134',
nameserver_ip_addr => '192.168.142.134',
node_ip_addr => '192.168.142.134',
conf_node_external_eth_dev => 'eth0',
RPM sources
install_method => 'yum',
repos_base => 'file:///home/wen/openshift_repo',
jenkins_repo_base => 'file:///home/wen/jenkins_repo',
optional_repo => 'http://mirrors.ustc.edu.cn/fedora/epel/6/x86_64/',
OpenShift Config
domain => 'wyl.local',
openshift_user1 => 'demo',
openshift_password1 => 'sMwNUIUqRkV9he1zRfFiAA',
conf_valid_gear_sizes => 'small,medium,large',
conf_default_gear_capabilities => 'small,medium',
conf_default_gear_size => 'small',
Datastore config
mongodb_port => 27017,
mongodb_replicasets => false,
mongodb_broker_user => 'openshift',
mongodb_broker_password => '9Km0vPS9U9v0h5IowgCyw',
mongodb_admin_user => 'admin',
mongodb_admin_password => 'NnZqfvTetXoSqfEWaYNzw',
MsgServer config
msgserver_cluster => false,
mcollective_user => 'mcollective',
mcollective_password => 'pv5bDYXFDkYSLRdI5ywQ',
DNS config
dns_infrastructure_zone => 'demo.local',
dns_infrastructure_names => [{ hostname => 'broker.demo.local', ipaddr => '192.168.142.134' }],
dns_infrastructure_key => 'UjCNCJgnqJPx6dFaQcWVwDjpEAGQY4Sc2H/llwJ6Rt+0iN8CP0Bm5j5pZsvvhZq7mxx7/MdTBBMWJIA9/yLQYg==',
bind_key => 'SgUfFVngIN3M2MfmYpfybJGr0VJ8ldBxY3/xtEQLwBSnJZjCmAeudf0cfmPVPSPYgV8657mDFDOg9KPIyyztzw==',
}
The text was updated successfully, but these errors were encountered: