Comments (4)
I think the issue is with the code itself.
I confirmed the ambari repo was not installed:
[root@ip-10-0-1-78 yum.repos.d]# ls
CentOS-Base.repo CentOS-CR.repo CentOS-Debuginfo.repo CentOS-Media.repo CentOS-Vault.repo elrepo.repo epel.repo epel-testing.repo
I think you need to bring the guards within the remote_file resource block, like so:
case node['platform']
when "redhat","centos","amazon","scientific"
case node['platform_version'].to_i
when 5
yum_repo = node['ambari']['rhel_5_repo']
when 6
yum_repo = node['ambari']['rhel_6_repo']
end
remote_file "/etc/yum.repos.d/ambari.repo" do
source yum_repo
not_if { File.exists?("/etc/yum.repos.d/ambari.repo") }
end
when "suse"
remote_file "/etc/zypp/repos.d/ambari.repo" do
source node['ambari']['suse_11_repo']
not_if { File.exists?("/etc/zypp/repos.d/ambari.repo") }
end
That worked for me. Let me know if you want me to write that up and submit a pull request.
from ambari.
Hey Joe, thanks for your feedback. I would be happy if you can submit a PR
for this. There is not tests yet for this cookbook, so just write up your
changes ;)
On Apr 12, 2015 3:29 PM, "JoeReid-Korrelate" [email protected]
wrote:
I think the issue is with the code itself.
I confirmed the ambari repo was not installed:
[root@ip-10-0-1-78 yum.repos.d]# ls
CentOS-Base.repo CentOS-CR.repo CentOS-Debuginfo.repo CentOS-Media.repo CentOS-Vault.repo elrepo.repo epel.repo epel-testing.repoI think you need to bring the guards within the remote_file resource
block, like so:case node['platform']
when "redhat","centos","amazon","scientific"
case node['platform_version'].to_i
when 5
yum_repo = node['ambari']['rhel_5_repo']
when 6
yum_repo = node['ambari']['rhel_6_repo']
end
remote_file "/etc/yum.repos.d/ambari.repo" do
source yum_repo
not_if { File.exists?("/etc/yum.repos.d/ambari.repo") }
end
when "suse"
remote_file "/etc/zypp/repos.d/ambari.repo" do
source node['ambari']['suse_11_repo']
not_if { File.exists?("/etc/zypp/repos.d/ambari.repo") }
endThat worked for me. Let me know if you want me to write that up and submit
a pull request.—
Reply to this email directly or view it on GitHub
#2 (comment).
from ambari.
Hey JP,
Thanks! Will do.
Regards,
Joe
from ambari.
Thanks for the PR 👍
from ambari.
Related Issues (14)
- Please add a license to the repo HOT 1
- [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590) HOT 3
- Clarify docs - How to use blueprints recipe HOT 3
- Support Ambari 2.0.0
- setup_package_manager.rb misses case for rhel7 HOT 1
- Conflicting version of snappy 1.1.0; ambari requires 1.0.5 for rhel7 HOT 1
- External Database Config HOT 3
- [Maintenance] Add support for Ambari 2.2.2 HOT 1
- Exported blueprint won't upload HOT 1
- Any plans to configure ambari.properties? HOT 2
- Supermarket release is quite outdated HOT 1
- Ambari Agent 2.4 fails to start in Centos7 HOT 1
- Add support for Ambari 2.0, other versions. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ambari.