Skip to content

Instantly share code, notes, and snippets.

@baroncharlus
baroncharlus / stubby.nix
Created Apr 7, 2018
stubby service wrapper
View stubby.nix
{ config, lib, pkgs, ...}:
with lib;
let
cfg = config.services.stubby;
fallbacks = concatMapStringsSep "\n " (x: "- ${x}") cfg.fallbackProtocols;
listeners = concatMapStringsSep "\n " (x: "- ${x}") cfg.listenAddresses;
extraConfig = optionalString (cfg.extraConfig != "") ''
View gist:77bb46f6653a0ff9b53880c4413129af
[----] I, [2017-05-18T11:40:41.845441 #10697:c6b13c] INFO -- : Q-task_id([miq_provision_420]) MIQ(ManageIQ::Providers::Vmware::InfraManager::Provision#log_clone_options) Config spec: (VimHash) xsiType: <VirtualMachineConfigSpec> vimType: <>
[----] I, [2017-05-18T11:40:41.845559 #10697:c6b13c] INFO -- : Q-task_id([miq_provision_420]) MIQ(ManageIQ::Providers::Vmware::InfraManager::Provision#log_clone_options) Config spec: ["annotation"](String) = "Owner: nSource: SALNRHL7TMP08\n\nMIQ GUID=5936124a-3be0-11e7-89d4-005056921ee3"
[----] I, [2017-05-18T11:40:41.845662 #10697:c6b13c] INFO -- : Q-task_id([miq_provision_420]) MIQ(ManageIQ::Providers::Vmware::InfraManager::Provision#log_clone_options) Config spec: ["memoryMB"](Fixnum) = 2048
[----] I, [2017-05-18T11:40:41.845815 #10697:c6b13c] INFO -- : Q-task_id([miq_provision_420]) MIQ(ManageIQ::Providers::Vmware::InfraManager::Provision#log_clone_options) Config spec: ["numCPUs"](Fixnum) = 1
[----] I, [2017-05-18T11:40:41.845903 #10697:c6b13c] INFO -- : Q-task
View gist:b5aee0462afd89b81183e158ae323645
[----] I, [2017-05-18T14:33:35.455611 #4391:a2d140] INFO -- : Q-task_id([miq_provision_422]) MIQ(ManageIQ::Providers::Vmware::InfraManager::Provision#log_clone_options) Config spec: (VimHash) xsiType: <VirtualMachineConfigSpec> vimType: <>
[----] I, [2017-05-18T14:33:35.455764 #4391:a2d140] INFO -- : Q-task_id([miq_provision_422]) MIQ(ManageIQ::Providers::Vmware::InfraManager::Provision#log_clone_options) Config spec: ["annotation"](String) = "Owner: \n\nMIQ GUID=8076506e-3bf8-11e7-a297-005056924a97"
[----] I, [2017-05-18T14:33:35.455856 #4391:a2d140] INFO -- : Q-task_id([miq_provision_422]) MIQ(ManageIQ::Providers::Vmware::InfraManager::Provision#log_clone_options) Config spec: ["memoryMB"](Fixnum) = 2048
[----] I, [2017-05-18T14:33:35.455937 #4391:a2d140] INFO -- : Q-task_id([miq_provision_422]) MIQ(ManageIQ::Providers::Vmware::InfraManager::Provision#log_clone_options) Config spec: ["numCPUs"](Fixnum) = 1
[----] I, [2017-05-18T14:33:35.456037 #4391:a2d140] INFO -- : Q-task_id([miq_provision_422]) MI
View gist:a3110c35a9733be76b6a3e541a871cfb
[----] I, [2017-05-18T14:33:35.455611 #4391:a2d140] INFO -- : Q-task_id([miq_provision_422]) MIQ(ManageIQ::Providers::Vmware::InfraManager::Provision#log_clone_options) Config spec: (VimHash) xsiType: <VirtualMachineConfigSpec> vimType: <>
[----] I, [2017-05-18T14:33:35.455764 #4391:a2d140] INFO -- : Q-task_id([miq_provision_422]) MIQ(ManageIQ::Providers::Vmware::InfraManager::Provision#log_clone_options) Config spec: ["annotation"](String) = "Owner: \n\nMIQ GUID=8076506e-3bf8-11e7-a297-005056924a97"
[----] I, [2017-05-18T14:33:35.455856 #4391:a2d140] INFO -- : Q-task_id([miq_provision_422]) MIQ(ManageIQ::Providers::Vmware::InfraManager::Provision#log_clone_options) Config spec: ["memoryMB"](Fixnum) = 2048
[----] I, [2017-05-18T14:33:35.455937 #4391:a2d140] INFO -- : Q-task_id([miq_provision_422]) MIQ(ManageIQ::Providers::Vmware::InfraManager::Provision#log_clone_options) Config spec: ["numCPUs"](Fixnum) = 1
[----] I, [2017-05-18T14:33:35.456037 #4391:a2d140] INFO -- : Q-task_id([miq_provision_422]) MI