Skip to content

Commit

Permalink
Add the ability to configure the tenant ID in the secret configuration
Browse files Browse the repository at this point in the history
Bonus: documentation improvement
  • Loading branch information
alexandre-butynski committed Aug 29, 2017
1 parent bc8735d commit 9c60e6d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Laravel OpenStack

This package provide a service provider to add the "openstack" driver to Laravel Storage.
This package provides a service provider to add a driver for OpenStack Object Storage (swift) to Laravel Storage.

## Installation

Expand All @@ -29,14 +29,17 @@ To configure a new Laravel storage disk on OpenStack, provide a configuration li

'openstack' => [
'driver' => 'openstack',
'endpoint' => env('OS_ENDPOINT', ''),
'username' => env('OS_USERNAME', ''),
'password' => env('OS_PASSWORD', ''),
'container' => env('OS_CONTAINER', ''),
'tenant_id' => env('OS_TENANT_ID', ''),
'tenant_name' => env('OS_TENANT_NAME', ''),
'endpoint' => env('OS_ENDPOINT', ''),
'service_name' => env('OS_SERVICE_NAME', 'swift'),
'container' => env('OS_CONTAINER', ''),
'region' => env('OS_REGION', ''),
'service_name' => env('OS_SERVICE_NAME', 'swift'),
],

],
```

Note that the implementation of OpenStack Object Storage varies from one provider to an other. For instance, the configuration of the `tenant_id` and/or of the `tenant_name` is not always mandatory.
1 change: 1 addition & 0 deletions src/Neoxia/Filesystem/OpenStackServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public function boot()
$client = new OpenStack($config['endpoint'], [
'username' => $config['username'],
'password' => $config['password'],
'tenantId' => $config['tenant_id'],
'tenantName' => $config['tenant_name'],
]);

Expand Down

0 comments on commit 9c60e6d

Please sign in to comment.