-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Added a config Ruby on rails (#1033)
* feat: Add deploy config for ruby on rails * Update main.yml update sample application name * fix: Update source repository in services for Go and Ruby
- Loading branch information
1 parent
73ac866
commit c727daf
Showing
3 changed files
with
77 additions
and
1 deletion.
There are no files selected for viewing
49 changes: 49 additions & 0 deletions
49
test/deploy/linux/ruby/ruby-on-rails/redhat/roles/configure/tasks/main.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
--- | ||
- debug: | ||
msg: Install Ruby on Rails | ||
|
||
- name: update yum packages | ||
shell: yum update -y | ||
become: true | ||
|
||
- name: install ruby | ||
shell: yum install ruby -y | ||
become: true | ||
|
||
- name: install rubygems | ||
shell: yum install rubygems -y | ||
become: true | ||
|
||
- name: update gem | ||
shell: gem update --system | ||
become: true | ||
|
||
- name: install bundler | ||
shell: gem install bundler | ||
become: true | ||
|
||
- name: install ruby-devel | ||
shell: yum install ruby-devel -y | ||
become: true | ||
|
||
- name: install dev tools | ||
shell: yum groupinstall "Development Tools" -y | ||
become: true | ||
|
||
- name: install pre-reqs | ||
shell: yum install libffi-devel libyaml-devel readline-devel zlib-devel openssl-devel -y | ||
become: true | ||
|
||
- name: install rails | ||
shell: gem install rails | ||
become: true | ||
|
||
- name: update gem bundler | ||
shell: gem update bundler | ||
become: true | ||
|
||
- name: create sample ruby application | ||
shell: rails new sample_ruby_app --skip-bundle | ||
|
||
- name: change directory to sample application | ||
ansible.builtin.shell: cd ~/sample_ruby_app && bundle install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"global_tags": { | ||
"owning_team": "virtuoso", | ||
"Environment": "development", | ||
"Department": "product", | ||
"Product": "virtuoso" | ||
}, | ||
"resources": [ | ||
{ | ||
"id": "ruby-on-rails-linux2", | ||
"provider": "aws", | ||
"type": "ec2", | ||
"size": "t2.medium", | ||
"ami_name": "al2023-ami-2023.3.20240122.0-kernel-6.1-x86_64", | ||
"user_name": "ec2-user" | ||
} | ||
], | ||
"services": [ | ||
{ | ||
"id": "rubyrails", | ||
"source_repository": "https://github.com/newrelic/open-install-library.git", | ||
"deploy_script_path": "test/deploy/linux/ruby/ruby-on-rails/redhat/roles", | ||
"port": 80, | ||
"destinations": ["ruby-on-rails-linux2"] | ||
} | ||
] | ||
} |