03:37
pinkieval has quit [Ping timeout: 265 seconds]
03:41
pinkieval has joined #nixops
05:12
<
DigitalKiwi >
# Not sure when I'd have more than one interface from the DO
05:12
<
DigitalKiwi >
# API but networks is an array nevertheless.
05:12
<
DigitalKiwi >
the answer is if you have private IP :)
05:13
<
DigitalKiwi >
why doesn't it let you have periods in hostnames anymore
05:15
<
DigitalKiwi >
and if you have private IP and the first IP in the list of IPs ends up being the private one then the default gateway is nil....
05:15
<
DigitalKiwi >
activation finished successfully
05:19
<
DigitalKiwi >
(that was not my comment btw someone else wrote it)
06:01
<
DigitalKiwi >
adisbladis: ping
06:02
<
DigitalKiwi >
so there's an IP that digitalocean needs for floating ips anchor
06:02
<
DigitalKiwi >
but it's not always the same
06:02
<
DigitalKiwi >
nixos-infect detects it by grep on ip addr or slt
06:03
<
DigitalKiwi >
...and it's not in the api afaict
06:03
<
DigitalKiwi >
so uh, not sure
06:03
<
DigitalKiwi >
{ address="10.10.0.5"; prefixLength=16; }
06:03
<
DigitalKiwi >
i can do multiple of those >.>
06:03
<
DigitalKiwi >
{ address="10.10.0.4"; prefixLength=16; }
06:03
<
DigitalKiwi >
{ address="10.10.0.5"; prefixLength=16; }
06:03
<
DigitalKiwi >
{ address="10.10.0.6"; prefixLength=16; }
06:04
<
DigitalKiwi >
one of those has to be right! (well i've seen them as high as 8
06:05
<
DigitalKiwi >
can i grep it from /etc/nixos/networking.nix :| (which gets generated by nixos-infect and has it)
06:06
<
DigitalKiwi >
or do what nixos-infect does...the problem is if it's on a new droplet the interface is there...after that it's guessing
06:08
<
DigitalKiwi >
i think there are a lot of things this does that only work right on a new droplet :/
06:10
<
DigitalKiwi >
or while creating the droplet i mean
06:44
<
DigitalKiwi >
how do i enable a service :(
06:53
<
DigitalKiwi >
the only place i see writing nix options is in get_physical_state and it's the state and i need access to the config/defn
06:54
<
DigitalKiwi >
so it's always false :(
06:54
<
DigitalKiwi >
("services", "do-agent", "enable"): self.enableMonitoring,
06:54
<
DigitalKiwi >
i want to do that
07:00
cole-h has quit [Quit: Goodbye]
09:29
early has joined #nixops
09:45
polezaivsani has joined #nixops
09:52
<
polezaivsani >
Soliciting more Nix{OS,Ops} advice - could two configurations be deployed onto a single machine? e.g. having a webserver and mailserver configurations - is there any way to deploy them onto a single machine?
09:55
<
polezaivsani >
I have a hunch that the answer would be a no, in which case i'd glad to hear any ideas on how to address such a case, or if it's an outright bad idea
09:55
<
adisbladis >
polezaivsani: Sure there is! The simplest way would be to just use imports
09:56
<
polezaivsani >
adisbladis: oh, cool, then i just need to learn it some more! thanks!
09:56
<
adisbladis >
{}: { imports = [ /path/to/mailserverconf.nix /path/to/webserverconf.nix ]; }
09:57
<
adisbladis >
polezaivsani: Another option is to use NixOS containers
10:00
<
polezaivsani >
i'll go read the section on imports (which i skipped thus far) as anything with a container in it has gained some bad connotations with me :)
11:32
polezaivsani has quit [Ping timeout: 240 seconds]
11:35
meh` has joined #nixops
12:47
<
chiiba >
Is it possible to deploy a DigitalOcean VPC using NixOps v1.7? Or at the very least deploy a DO droplet in an existing DO VPC?
12:54
ixxie has joined #nixops
14:34
{^_^} has quit [Remote host closed the connection]
14:36
{^_^} has joined #nixops
15:03
mananamenos__ has quit [Ping timeout: 264 seconds]
16:20
cole-h has joined #nixops
16:20
polezaivsani has joined #nixops
16:32
meh` has quit [Ping timeout: 264 seconds]
16:37
hplar has joined #nixops
16:42
meh` has joined #nixops
16:47
* DigitalKiwi
is currently working on private networking in nixops-digitalocean
16:48
<
gchristensen >
ixxie: I'm super incredibly busy these days and just don't have much energy to think about things :(
16:48
<
DigitalKiwi >
speaking of... ixxie lol when you renamed doDroplet to droplet...they were origianlly digitalOcean
16:48
* DigitalKiwi
had to edit the sqlite file again
16:51
* DigitalKiwi
currently has ~80 ssh keys
16:56
meh` has quit [Ping timeout: 265 seconds]
16:57
<
DigitalKiwi >
adisbladis: oh
16:57
<
DigitalKiwi >
10.10.0.5
16:57
<
DigitalKiwi >
so uh
16:58
<
DigitalKiwi >
can i make nixops call that command on a running droplet?
16:58
<
DigitalKiwi >
and then update the config
17:03
meh` has joined #nixops
17:20
nuncanada has joined #nixops
18:02
<
DigitalKiwi >
adisbladis: sometime when you're free could you explain how the different attributes link together between the nix code and the python
18:02
<
DigitalKiwi >
adisbladis: and between the state and the definition
18:02
<
DigitalKiwi >
and how they interact
18:05
meh` has quit [Ping timeout: 240 seconds]
18:05
meh` has joined #nixops
18:21
<
DigitalKiwi >
AttributeError: 'DropletState' object has no attribute 'run_command_get_stdout'
18:21
<
DigitalKiwi >
but it has run_command?
18:21
<
DigitalKiwi >
is it new?
18:24
<
DigitalKiwi >
# ip addr list|grep 10\.10
18:24
<
DigitalKiwi >
inet 10.10.0.5/16 scope global ens3
18:24
<
DigitalKiwi >
and i can ping the floating ip!
18:26
<
DigitalKiwi >
it is not new enough that it should matter...
19:43
meh` has quit [Remote host closed the connection]
20:02
ixxie_ has joined #nixops
20:03
<
DigitalKiwi >
how can i get to the instance of a machine definition from the state?
20:03
<
DigitalKiwi >
or in general update the state from changed settings
20:03
<
DigitalKiwi >
right now it only works in the create phase
20:04
<
DigitalKiwi >
...so changing settings doesn't do anything ?? :(
20:05
<
ixxie_ >
DigitalKiwi: we should fix the naming again to digitalOcean so you don't have to fiddle with SQLite
20:05
<
ixxie_ >
gchristensen: thanks for that link; I will try and reach out to them for help!
20:15
<
DigitalKiwi >
...because sometimes i might have to call a digital ocean api to change a setting, but others i just need to update the generated nix
21:31
cole-h has quit [Quit: Goodbye]
21:36
cole-h has joined #nixops
21:56
polezaivsani has quit [Ping timeout: 256 seconds]