diff --git a/LICENSE b/LICENSE index 270b749..de8e467 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2019 Nanobox +Copyright (c) 2015-2019 Nanobox, 2019-present The Microbox Team Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index b53a312..e760107 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -An implementation of the [Nanobox Custom Provider](https://docs.nanobox.io/providers/create/) spec for Linode. +An implementation of the [Microbox Custom Provider](https://docs.microbox.cloud/providers/create/) spec for Linode. ## Development @@ -9,7 +9,7 @@ An implementation of the [Nanobox Custom Provider](https://docs.nanobox.io/provi ### Local Evars A Linode API key is required to update the catalog files. -`nanobox evar add local API_KEY=your_linode_api_key` +`microbox evar add local API_KEY=your_linode_api_key` Update catalog config files. `bundle exec rake catalog:update` diff --git a/app.rb b/app.rb index 4361549..d7b1b70 100644 --- a/app.rb +++ b/app.rb @@ -29,8 +29,8 @@ get '/' do content_type 'text/html' - 'Linode API Adapter for Nanobox. ' \ - 'source: https://github.com/nanobox-io/nanobox-adapter-linode' + 'Linode API Adapter for Microbox. ' \ + 'source: https://github.com/mu-box/microbox-adapter-linode' end get '/meta' do diff --git a/lib/client.rb b/lib/client.rb index 15c798b..c5ca3bb 100644 --- a/lib/client.rb +++ b/lib/client.rb @@ -130,7 +130,7 @@ def linode_create_disk(linode_id, size, ssh_key) LinodeID: linode_id, # Ubuntu 16.04 LTS DistributionID: 146, - Label: 'nanobox-disk', + Label: 'microbox-disk', Size: disk_size(size), rootSSHKey: ssh_key, # never going to use this password, but it's required @@ -143,7 +143,7 @@ def linode_create_swap_disk(linode_id, size_id) LinodeID: linode_id, Type: 'swap', Size: swap_disk_size(size_id), - Label: "nanobox-swap" + Label: "microbox-swap" ) end @@ -152,7 +152,7 @@ def linode_create_config(linode_id, disks) LinodeID: linode_id, # GRUB 2 KernelID: 210, - Label: "nanobox-profile", + Label: "microbox-profile", DiskList: disks, helper_network: true ) diff --git a/lib/meta.rb b/lib/meta.rb index bdbb4ef..600097e 100644 --- a/lib/meta.rb +++ b/lib/meta.rb @@ -11,7 +11,7 @@ def attrs ssh_user: 'root', internal_iface: 'eth0:1', external_iface: 'eth0', - bootstrap_script: 'https://s3.amazonaws.com/tools.nanobox.io/bootstrap/ubuntu.sh', + bootstrap_script: 'https://s3.amazonaws.com/tools.microbox.cloud/bootstrap/ubuntu.sh', # options: reference, object ssh_key_method: 'object', can_reboot: true, diff --git a/spec/fixtures/vcr_cassettes/client/server_order.yml b/spec/fixtures/vcr_cassettes/client/server_order.yml index ef32e7f..c0673bd 100644 --- a/spec/fixtures/vcr_cassettes/client/server_order.yml +++ b/spec/fixtures/vcr_cassettes/client/server_order.yml @@ -37,7 +37,7 @@ http_interactions: body: encoding: UTF-8 string: '{"ACTION":"linode.create","DATA":{"LinodeID":3068345},"ERRORARRAY":[]}' - http_version: + http_version: recorded_at: Wed, 03 May 2017 21:06:16 GMT - request: method: post @@ -76,7 +76,7 @@ http_interactions: body: encoding: UTF-8 string: '{"ACTION":"linode.update","DATA":{"LinodeID":3068345},"ERRORARRAY":[]}' - http_version: + http_version: recorded_at: Wed, 03 May 2017 21:06:16 GMT - request: method: post @@ -115,14 +115,14 @@ http_interactions: body: encoding: UTF-8 string: '{"ACTION":"linode.ip.addprivate","DATA":{"IPADDRESS":"192.168.137.186","IPADDRESSID":400217},"ERRORARRAY":[]}' - http_version: + http_version: recorded_at: Wed, 03 May 2017 21:06:17 GMT - request: method: post uri: https://api.linode.com/ body: encoding: UTF-8 - string: api_key=h7IX5qQy0Myde3Jatcww9QwAn4t0VAL5Y1bubFwgecCJecfNWbvYrYFHonvC726h&api_action=linode.disk.createfromdistribution&api_responseFormat=json&LinodeID=3068345&DistributionID=146&Label=nanobox-disk&Size=18976&rootSSHKey=ssh-rsa%20AAAAB3NzaC1yc2EAAAADAQABAAABAQDWYkCuD5pgtFCNWGeuvsRzZBtr7cp2vDKZ%2BYFi4j7z13IKuzkf%2BT7o23kaAENWitAUYel%2BrWcCIZbMh58NkNfVjgJI6j4FFKPFwMAmDRXWJxRqjjIm4B4i1HT%2F42RetU41VbP535TGX%2BwuCWk2G0o839%2BGWP6jWXcLP3Z3mm69Qzkdz02vdKkfdDpcX%2FQqPq93pDoceMyGoZvpsZ4J%2FWw769KAZCvseEU9jI03iXK2ur9lUGmzbrTfGFSVV7qSBi3ffMlU5dL9hSZCzDtEGX6UjzbDiuyKtPliGQ0m%2BXFNNG9dztjr67hQ7wBdih%2BsCUcw8tr%2BXJAMQrYGW5YReHnl&rootPass=26be66d386a3537bffbc033755715052f33843f219bc4cfd73548e9fcc406ce917566da9e70f5127c507e671af850f5d3782 + string: api_key=h7IX5qQy0Myde3Jatcww9QwAn4t0VAL5Y1bubFwgecCJecfNWbvYrYFHonvC726h&api_action=linode.disk.createfromdistribution&api_responseFormat=json&LinodeID=3068345&DistributionID=146&Label=microbox-disk&Size=18976&rootSSHKey=ssh-rsa%20AAAAB3NzaC1yc2EAAAADAQABAAABAQDWYkCuD5pgtFCNWGeuvsRzZBtr7cp2vDKZ%2BYFi4j7z13IKuzkf%2BT7o23kaAENWitAUYel%2BrWcCIZbMh58NkNfVjgJI6j4FFKPFwMAmDRXWJxRqjjIm4B4i1HT%2F42RetU41VbP535TGX%2BwuCWk2G0o839%2BGWP6jWXcLP3Z3mm69Qzkdz02vdKkfdDpcX%2FQqPq93pDoceMyGoZvpsZ4J%2FWw769KAZCvseEU9jI03iXK2ur9lUGmzbrTfGFSVV7qSBi3ffMlU5dL9hSZCzDtEGX6UjzbDiuyKtPliGQ0m%2BXFNNG9dztjr67hQ7wBdih%2BsCUcw8tr%2BXJAMQrYGW5YReHnl&rootPass=26be66d386a3537bffbc033755715052f33843f219bc4cfd73548e9fcc406ce917566da9e70f5127c507e671af850f5d3782 headers: Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 @@ -154,14 +154,14 @@ http_interactions: body: encoding: UTF-8 string: '{"ACTION":"linode.disk.createfromdistribution","DATA":{"DiskID":7881227,"JobID":48877488},"ERRORARRAY":[]}' - http_version: + http_version: recorded_at: Wed, 03 May 2017 21:06:18 GMT - request: method: post uri: https://api.linode.com/ body: encoding: UTF-8 - string: api_key=h7IX5qQy0Myde3Jatcww9QwAn4t0VAL5Y1bubFwgecCJecfNWbvYrYFHonvC726h&api_action=linode.disk.create&api_responseFormat=json&LinodeID=3068345&Type=swap&Size=1024&Label=nanobox-swap + string: api_key=h7IX5qQy0Myde3Jatcww9QwAn4t0VAL5Y1bubFwgecCJecfNWbvYrYFHonvC726h&api_action=linode.disk.create&api_responseFormat=json&LinodeID=3068345&Type=swap&Size=1024&Label=microbox-swap headers: Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 @@ -193,14 +193,14 @@ http_interactions: body: encoding: UTF-8 string: '{"ACTION":"linode.disk.create","DATA":{"DiskID":7881228,"JobID":48877489},"ERRORARRAY":[]}' - http_version: + http_version: recorded_at: Wed, 03 May 2017 21:06:18 GMT - request: method: post uri: https://api.linode.com/ body: encoding: UTF-8 - string: api_key=h7IX5qQy0Myde3Jatcww9QwAn4t0VAL5Y1bubFwgecCJecfNWbvYrYFHonvC726h&api_action=linode.config.create&api_responseFormat=json&LinodeID=3068345&KernelID=210&Label=nanobox-profile&DiskList=7881227%2C7881228 + string: api_key=h7IX5qQy0Myde3Jatcww9QwAn4t0VAL5Y1bubFwgecCJecfNWbvYrYFHonvC726h&api_action=linode.config.create&api_responseFormat=json&LinodeID=3068345&KernelID=210&Label=microbox-profile&DiskList=7881227%2C7881228 headers: Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 @@ -232,7 +232,7 @@ http_interactions: body: encoding: UTF-8 string: '{"ACTION":"linode.config.create","DATA":{"ConfigID":4107155},"ERRORARRAY":[]}' - http_version: + http_version: recorded_at: Wed, 03 May 2017 21:06:19 GMT - request: method: post @@ -271,6 +271,6 @@ http_interactions: body: encoding: UTF-8 string: '{"ACTION":"linode.boot","DATA":{"JobID":48877490},"ERRORARRAY":[]}' - http_version: + http_version: recorded_at: Wed, 03 May 2017 21:06:19 GMT recorded_with: VCR 3.0.3