terra_boi 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4315fdccd989f9477c4fa6911a298f2657ef3833ae5661c3422c375eb5f9fd4f
4
- data.tar.gz: 26884beb178531bf6b25eb8226e12f45b8b302672b6d86ebc940f66aa8c579c9
3
+ metadata.gz: 6c382da963578bc9a256096419450cd02796054b7ca75d5ce77307e41897ddcd
4
+ data.tar.gz: 3caba8cc044c94d98caa8b175de6b7c9b55ad183c8c0ed5d0d83321f50d34c53
5
5
  SHA512:
6
- metadata.gz: a9e6f8c686fc902973a0639b77e90f81297038b5282689cdb87560d52f40b388f18c26cadf93e03b0be5b41ad772b65ba1b0f09848568a84614337669b7f242e
7
- data.tar.gz: 489520341bcdebd0bb7db4c550d1c98013be808424f4c6c2db54a0f43ceb3b3ebfccb46ff10d953c8925d0a721cbb68adf7b9268bdd0169e9ade21cb8f53bdff
6
+ metadata.gz: b528539a06aa276113e51118ca006171e062e0c43a8121db229d066ef5cf16626b15f409a2fddf8b254bae37691061d874db9776a255bef348e5b6a9d5793bc0
7
+ data.tar.gz: 554494154794a213f00a7985867ad8672ef48f844dc234284a27227290ea876c8d7ef2162497a2247c9ad2315e3ad96f99b612cf6e9753e7cdf778a967ba3078
data/README.md CHANGED
@@ -232,5 +232,7 @@ In `lib/terra_boi/version.rb` update version.
232
232
 
233
233
  **4. Tag GitHub**
234
234
 
235
+ `git add -A`
236
+ `git commit -m "Msg"`
235
237
  `git tag -a vX.X.X -m "Msg"`
236
238
  `git push --tags`
@@ -20,7 +20,7 @@ variable "db_username" {}
20
20
  variable "db_password" {}
21
21
 
22
22
  module "db_and_s3" {
23
- source = "github.com/charliereese/terraform_modules//data?ref=v0.0.7"
23
+ source = "github.com/charliereese/terraform_modules//data?ref=v0.0.11"
24
24
 
25
25
  env = "<%= config[:env] %>"
26
26
  app_name = "<%= application_name %>"
@@ -3,6 +3,11 @@ output "address" {
3
3
  description = "Connect to the database at this endpoint"
4
4
  }
5
5
 
6
+ output "db_username" {
7
+ value = module.db_and_s3.db_username
8
+ description = "DB username"
9
+ }
10
+
6
11
  output "port" {
7
12
  value = module.db_and_s3.port
8
13
  description = "The port the database is listening on"
@@ -3,7 +3,7 @@
3
3
  # ---------------------------------------------------------------------------------------------------------------------
4
4
 
5
5
  module "remote_state_locking" {
6
- source = "github.com/charliereese/terraform_modules//state?ref=v0.0.7"
6
+ source = "github.com/charliereese/terraform_modules//state?ref=v0.0.11"
7
7
 
8
8
  app_name = "<%= application_name %>"
9
9
  region = "us-east-2"
@@ -17,12 +17,13 @@ terraform {
17
17
  # ---------------------------------------------------------------------------------------------------------------------
18
18
 
19
19
  module "webserver_cluster" {
20
- source = "github.com/charliereese/terraform_modules//web_servers?ref=v0.0.7"
20
+ source = "github.com/charliereese/terraform_modules//web_servers?ref=v0.0.11"
21
21
 
22
22
  instance_type = "t2.micro"
23
23
  env = "<%= config[:env] %>"
24
24
  app_name = "<%= application_name %>"
25
25
  domain_name = "<%= config[:domain_name] %>"
26
+ id_rsa_pub = "<%= id_rsa_pub %>"
26
27
  min_size = 1
27
28
  max_size = 1
28
29
  business_hours_size = 1
@@ -2,7 +2,7 @@ require "generators/extensions"
2
2
 
3
3
  module TerraBoi
4
4
  class WebServersGenerator < Rails::Generators::Base
5
- attr_accessor :application_name, :class_options
5
+ attr_accessor :application_name, :id_rsa_pub, :class_options
6
6
  class_option :domain_name, type: :string
7
7
  source_root File.expand_path('templates', __dir__)
8
8
 
@@ -17,6 +17,7 @@ module TerraBoi
17
17
  def init
18
18
  # defined in lib/generators/extensions
19
19
  self.application_name = generate_application_name
20
+ self.id_rsa_pub = open(ENV['HOME'] + "/.ssh/id_rsa.pub").read.chomp
20
21
  self.class_options = options
21
22
  end
22
23
 
@@ -1,3 +1,3 @@
1
1
  module TerraBoi
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: terra_boi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Charlie Reese
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-23 00:00:00.000000000 Z
11
+ date: 2019-09-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails