mkdir isobuild && cd isobuild
sudo dnf install rpm-ostree lorax -y
git clone -b f33 https://pagure.io/workstation-ostree-config
git clone -b f33 https://pagure.io/fedora-lorax-templates.git
mkdir repo
ostree init --repo=repo
rpm-ostree compose tree --repo=$(pwd)/repo \
$(pwd)/workstation-ostree-config/fedora-silverblue.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import argparse | |
from azure.keyvault import KeyVaultClient | |
from azure.common.credentials import get_azure_cli_credentials | |
from msrestazure.azure_active_directory import MSIAuthentication | |
parser = argparse.ArgumentParser( | |
description= | |
'Script to retrieve azure keyvault secret using Microsoft MSI or Azure.Cli authentication' | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- hosts: localhost | |
connection: local | |
vars: | |
exabgp_conf: | |
- section: neighbor | |
name: 127.0.0.15 | |
config: |- | |
local-as 64512; | |
local-address 127.0.0.1; | |
description "Example neighbor"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Get-AccessToken { | |
$context = Get-AzContext | |
$profile = [Microsoft.Azure.Commands.Common.Authentication.Abstractions.AzureRmProfileProvider]::Instance.Profile | |
$profileClient = New-Object -TypeName Microsoft.Azure.Commands.ResourceManager.Common.RMProfileClient -ArgumentList ($profile) | |
$token = $profileClient.AcquireAccessToken($context.Subscription.TenantId) | |
return $token.AccessToken | |
} | |
function Get-AzSubscriptionPartner { | |
param( | |
[Parameter(Mandatory = $true)] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def set_headers(credentials): | |
headers = credentials.signed_session().headers | |
headers['Content-type'] = 'application/json' | |
return(headers) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
provider "azurerm" { | |
// subscription_id = "" | |
// tenant_id = "" | |
features {} | |
} | |
locals { | |
// some default/global settings here | |
default_location = "northeurope" | |
default_tags = {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# An example of decoding/encoding datetime values in JSON data in Python. | |
# Code adapted from: http://broadcast.oreilly.com/2009/05/pymotw-json.html | |
from datetime import datetime | |
import json | |
from json import JSONDecoder | |
from json import JSONEncoder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
document: modulemd | |
version: 2 | |
data: | |
summary: boxes | |
description: >- | |
boxes | |
license: | |
module: | |
- MIT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
import sys | |
import yaml | |
import requests | |
from subprocess import check_output | |
flatpak_runtime_yaml = yaml.safe_load( | |
requests.get( | |
'https://src.fedoraproject.org/modules/flatpak-runtime/raw/f33/f/flatpak-runtime.yaml' | |
).content) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- hosts: localhost | |
connection: local | |
tasks: | |
- name: Gather facts on a specific container | |
containers.podman.podman_container_info: | |
name: | |
- fedora-toolbox-33 | |
- fedora-toolbox-34 | |
register: toolbox_facts | |
OlderNewer