For the record you can write a simple if in one line since Python 2.5.
x = 4 if b > 8 else 9
For the record you can write a simple if in one line since Python 2.5.
x = 4 if b > 8 else 9
Just as a reminder, this is ALPHA software currently under heavy development, your post reads like if Sodium was already released to production.
I am currently trying to build a 3 node setup in the lab, all of the Hyper V hosts have only one 150Gb disk available and 32Gb of ram.
According to the following screenshots from their documentation
Does this mean, since I am only using one disk, I need to create several partitions and set the Starwind storage pools to use them? Or will I be able to set on the drive of a regular one partition install?
Just as a reminder this setup is only for testing purposes.
@dustinb3403 Until sodium gets the ability to deploy packages, you could maybe try to test Munki + AutoPkg. Reading their product descriptions, it seems they could work for you.
They have freeSWITCH 1.9 in development which makes me think 1.8 should already be out.
1.6 branch originally came out in 2015, 1.6.18 which is the current recommended release came out June 15,2017. So they look pretty active.
@scottalanmiller said in Setting up FusionPBX:
@romo said in Setting up FusionPBX:
@scottalanmiller said in Setting up FusionPBX:
FreeSWITCH
From their documentation:
Debian 8 Jessie (preferred) The development team uses and builds against Debian 8 "Jessie". They recommend Debian because of its stable, yet updated, kernel and wide support.
The also have prebuilt binaries for Centos /RHEL 7 and Windows
Seems like they'd be pretty anxious to be on Debian 9 if Debian is their focus. You'd think that they would have been testing on beta before the release date.
Again from their docs:
Debian 9 "Stretch" was released 17th June 2017 at this time FreeSWITCH version 1.6 is not built for the platform. It is expected to be fully supported when version 1.8 is released.
@scottalanmiller said in Setting up FusionPBX:
FreeSWITCH
From their documentation:
Debian 8 Jessie (preferred) The development team uses and builds against Debian 8 "Jessie". They recommend Debian because of its stable, yet updated, kernel and wide support.
The also have prebuilt binaries for Centos /RHEL 7 and Windows
@jaredbusch said in Content layout:
@romo said in Content layout:
@jaredbusch Image background with title overlay and maybe tabs for navigation in the same page?
I like this idea. Question,. how do i get back up a level?
To the main lore section? Where the other stories would be? You could do recent pages carousel at the bottom of the tab content.
@jaredbusch Image background with title overlay and maybe tabs for navigation in the same page?
@scottalanmiller said in Recommended Slack community & apps:
@Romo said in Recommended Slack community & apps:
Not on Slack but there are several great one using https://gitter.im, most communities are for developers but I think you might like more than one using this tag:
Devops - https://gitter.im/explore/tags/curated:devops,devops
Seems a bit like an IRC channel.
Yep, pretty much what public slack and gitter communities are replacing.
Not on Slack but there are several great one using https://gitter.im, most communities are for developers but I think you might like more than one using this tag:
Devops - https://gitter.im/explore/tags/curated:devops,devops
@scottalanmiller said in What Are You Doing Right Now:
According to Glassdoor, Mexico City is the place to be with IT salaries easily in the $500K USD range.
LOL
@scottalanmiller said in RamBox:
@scottalanmiller said in RamBox:
So if it used to not be a wrapper, maybe Slack is cloning Rocket.Chat now rather than the other way around.
They both use Electron to provide their "desktop clients".
I knew that Rocket did. So Slack copied that from them?
Don't really know, I know they were using Electron for the windows app almost since the beginning and just last year change the mac version from MacGap to Electron as well.
@scottalanmiller said in RamBox:
So if it used to not be a wrapper, maybe Slack is cloning Rocket.Chat now rather than the other way around.
They both use Electron to provide their "desktop clients".
All steps must be executed on powershell with administrator permissions and ran on target computers as well as connection initiator computers.
Enabling PS Remoting
Enable-PSRemoting -Force
Since this a workgroup setup, we need to configure the TrustedHosts settings on the computers in order to establish proper trusts.
// if we trust the local lan completely
Set-Item wsman:\localhost\client\trustedhosts *
// Enabling access to specific hosts via hostname or ip address just pass a comma separated list of hosts
Set-Item wsman:\localhost\client\trustedhosts 'hostname1, hostname2 , ipaddress1'
Restart the WinRM server to make changes take effect
Restart-Service WinRM
Accessing a remote PS Session
Enter-PSSession -ComputerName yourTargetHost -Credential yourUser
After inserting your credentials the session should be ready!
Downloading the starwind-v8.exe to our Hyper-V host.
wget "https://url.to.your/file" -outfile "starwind-v8.exe"
Believe it or not windows sorta has wget, I was not expecting that!!! It really is an alias for Invoke-WebRequest
but nevertheless its great having something similiar availble.
After the download has finalized, just execute the .exe and the tipical windows install gui will pop up.
.\starwind-v8.exe
No management console install option available since this is a no gui server.
@IRJ said in Wordpress Test Site:
I want to do a turorial on scanning a wordpress site for vulns. Does anyone have one I can scan and post the results? I only have production style sites at the moment.
Here you go, you can scan one of my sites, it is about to be decomissioned. It has content and plugins, it is suppose to be a members only site. Fully updated, Wordpress 4.8 and Wordfence installed. Would really like to see the results of your scan.
@stacksofplates said in Fedora 26 Minimal includes Cockpit:
@stacksofplates said in Fedora 26 Minimal includes Cockpit:
@travisdh1 said in Fedora 26 Minimal includes Cockpit:
@stacksofplates said in Fedora 26 Minimal includes Cockpit:
@JaredBusch said in Fedora 26 Minimal includes Cockpit:
@stacksofplates said in Fedora 26 Minimal includes Cockpit:
I've been using virt-builder to build images. Disk is only 6GB. 99% sure cockpit isn't installed.
All I know is I downloaded the net image and chose the minimal install.
Maybe it is buggy. It is alpha.
Ya the virt-builder images are GPG signed and prebuilt for KVM. They have the QEMU guest agent installed and will generate a random root password each time you create a disk. I haven't grabbed a server image from the Fedora site in a while.
Do you remember where you found that guest image? I'd like to spin some up.
Edit: I think I found a source: https://docs.openstack.org/image-guide/obtain-images.html
It pulls them in automatically. Just run
virt-builder fedora-25
and add whatever options after. I usually just do something like this:virt-builder fedora-25 --format qcow2 --hostname changeme --run-command 'useradd ansible && echo "ansible ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/ansible' --install '<package that I can't remember right now>' --selinux-relabel
Once it's done building I create the VM using that disk and let it spin up, and then shut it down. Then I run:
virt-sysprep -a template.qcow2 --ssh-inject ansible:file:/path/to/pub_key
Then I can just clone it and apply all of my policies with Ansible.
Looked when I got home. The package I couldn't remember is
python, libselinux-python, and qemu-guest-agent
. The image also doesnt havetar
orunzip
installed.I lied about the guest agent. It's not installed by default but the console is available through ttyS0 by default which is nice.
@stacksofplates Why inject the ssh-keys with virt-sysprep and not directly with virt-builder?
I am getting locale errors when using vms created with virt-builder any idea how to fix this?