This template deploys a minimal Ubuntu 22.04 VM (B1s) that:
- Installs Nginx with a demo HTML page
- Installs the Datadog Agent via VM Extension
- Opens ports 22 (SSH) and 80 (HTTP)
| # ---------- Azure OpenAI ---------- | |
| # Your Azure OpenAI resource endpoint (include trailing slash) | |
| AZURE_OPENAI_ENDPOINT=https://<your-resource>.openai.azure.com/ | |
| # Your Azure OpenAI API key | |
| AZURE_OPENAI_API_KEY=<your-azure-openai-key> | |
| # The API version compatible with your deployment | |
| AZURE_OPENAI_API_VERSION=2024-10-21 | |
| # Your deployment name (e.g., gpt-4o-mini, gpt-4o-mini-2024-07-18, etc.) | |
| AZURE_OPENAI_DEPLOYMENT=gpt-4o-mini |
| . |
| #!/bin/bash | |
| ####################################### | |
| # Datadog Agent Installation Script | |
| ####################################### | |
| # | |
| # Description: | |
| # This script automates the installation and configuration of the Datadog Agent | |
| # on Linux systems. It validates the API key, automatically detects the correct | |
| # site, and configures various Datadog features. |
| <?php | |
| /** | |
| * Plugin Name: Nginx Log Parser | |
| * Description: Parses Nginx logs for query parameter insights. | |
| * Version: 1.0 | |
| * Author: Kyle Taylor | |
| * Author URI: https://pantheon.io | |
| */ | |
| if (!class_exists('WP_List_Table')) { |
| <?php | |
| // Create the upload subdirectory, this is where | |
| // we store all our generated images | |
| if ( defined( 'BFITHUMB_UPLOAD_DIR' ) ) { | |
| $upload_dir .= "/" . BFITHUMB_UPLOAD_DIR; | |
| $upload_url .= "/" . BFITHUMB_UPLOAD_DIR; | |
| } else { | |
| $upload_dir .= "/bfi_thumb"; | |
| $upload_url .= "/bfi_thumb"; |
| node_modules | |
| *.csv | |
| package-lock.json |
| const { join } = require("path"); | |
| /** | |
| * @type {import("puppeteer").Configuration} | |
| */ | |
| module.exports = { | |
| // Changes the cache location for Puppeteer. | |
| cacheDirectory: join(__dirname, ".cache", "puppeteer"), | |
| }; |
| (wp|drush) eval '$cachetool=sys_get_temp_dir()."/cachetool.phar";$old="https://gordalina.github.io/cachetool/downloads/cachetool-3.2.2.phar";$new="https://github.com/gordalina/cachetool/releases/download/8.5.0/cachetool.phar";$url=(version_compare(phpversion(), "8") < 0) ? $old : $new;file_put_contents($cachetool, file_get_contents($url));chmod($cachetool, 0755);echo shell_exec("php $cachetool opcache:status --fcgi=/shared-run/php-fpm.sock");unlink($cachetool);' |
| name: example | |
| recipe: pantheon | |
| config: | |
| framework: drupal8 | |
| site: example | |
| id: <SITE_UUID> | |
| xdebug: true | |
| php: 8.1 | |
| index: false | |
| edge: false |