pulumi-django-azure 1.0.4__tar.gz → 1.0.6__tar.gz

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.

Potentially problematic release.


This version of pulumi-django-azure might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pulumi-django-azure
3
- Version: 1.0.4
3
+ Version: 1.0.6
4
4
  Summary: Simply deployment of Django on Azure with Pulumi
5
5
  Author-email: Maarten Ureel <maarten@youreal.eu>
6
6
  License: MIT License
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "pulumi-django-azure"
7
- version = "1.0.4"
7
+ version = "1.0.6"
8
8
  description = "Simply deployment of Django on Azure with Pulumi"
9
9
  readme = "README.md"
10
10
  authors = [{ name = "Maarten Ureel", email = "maarten@youreal.eu" }]
@@ -27,7 +27,7 @@ Homepage = "https://gitlab.com/MaartenUreel/pulumi-django-azure"
27
27
 
28
28
  [tool.poetry]
29
29
  name = "pulumi-django-azure"
30
- version = "1.0.4"
30
+ version = "1.0.6"
31
31
  description = "Simply deployment of Django on Azure with Pulumi"
32
32
  authors = ["Maarten Ureel <maarten@youreal.eu>"]
33
33
 
@@ -14,6 +14,7 @@ class DjangoDeployment(pulumi.ComponentResource):
14
14
  tenant_id: str,
15
15
  resource_group_name: pulumi.Input[str],
16
16
  vnet: azure.network.VirtualNetwork,
17
+ pgsql_sku: azure.dbforpostgresql.SkuArgs,
17
18
  pgsql_ip_prefix: str,
18
19
  appservice_ip_prefix: str,
19
20
  app_service_sku: azure.web.SkuDescriptionArgs,
@@ -50,7 +51,7 @@ class DjangoDeployment(pulumi.ComponentResource):
50
51
  self._cdn_host = self._create_cdn(custom_host=cdn_host)
51
52
 
52
53
  # PostgreSQL resources
53
- self._create_database(ip_prefix=pgsql_ip_prefix)
54
+ self._create_database(sku=pgsql_sku, ip_prefix=pgsql_ip_prefix)
54
55
 
55
56
  # Subnet for the apps
56
57
  self._app_subnet = self._create_subnet(
@@ -145,7 +146,7 @@ class DjangoDeployment(pulumi.ComponentResource):
145
146
  # Return the default CDN host name
146
147
  return self._cdn_endpoint.host_name
147
148
 
148
- def _create_database(self, ip_prefix: str):
149
+ def _create_database(self, sku: azure.dbforpostgresql.SkuArgs, ip_prefix: str):
149
150
  # Create subnet for PostgreSQL
150
151
  subnet = self._create_subnet(
151
152
  name="pgsql",
@@ -176,10 +177,7 @@ class DjangoDeployment(pulumi.ComponentResource):
176
177
  self._pgsql = azure.dbforpostgresql.Server(
177
178
  f"pgsql-{self._name}",
178
179
  resource_group_name=self._rg,
179
- sku=azure.dbforpostgresql.SkuArgs(
180
- name="Standard_B2s",
181
- tier=azure.dbforpostgresql.SkuTier.BURSTABLE,
182
- ),
180
+ sku=sku,
183
181
  version="16",
184
182
  auth_config=azure.dbforpostgresql.AuthConfigArgs(
185
183
  password_auth=azure.dbforpostgresql.PasswordAuthEnum.DISABLED,
@@ -260,8 +258,6 @@ class DjangoDeployment(pulumi.ComponentResource):
260
258
  # azure.web.NameValuePairArgs(name="WEBSITE_HTTPLOGGING_RETENTION_DAYS", value="7"),
261
259
  # pgAdmin settings
262
260
  azure.web.NameValuePairArgs(name="PGADMIN_DISABLE_POSTFIX", value="true"),
263
- azure.web.NameValuePairArgs(name="PGADMIN_AUTHENTICATION_SOURCES", value="['oauth2, 'internal']"),
264
- azure.web.NameValuePairArgs(name="PGADMIN_OAUTH2_NAME", value="azure"),
265
261
  azure.web.NameValuePairArgs(name="PGADMIN_DEFAULT_EMAIL", value="dbadmin@dbadmin.net"),
266
262
  azure.web.NameValuePairArgs(name="PGADMIN_DEFAULT_PASSWORD", value="dbadmin"),
267
263
  ],
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pulumi-django-azure
3
- Version: 1.0.4
3
+ Version: 1.0.6
4
4
  Summary: Simply deployment of Django on Azure with Pulumi
5
5
  Author-email: Maarten Ureel <maarten@youreal.eu>
6
6
  License: MIT License